Skip to content

List recoverable deletions

GET
/v0/namespaces/{namespace}/filesystem/trash

Returns the namespace’s recoverable deletions, oldest deletion first. Entries never age out at the retention floor; each carries the inode id and deletion sequence undelete needs, plus the deleted name when the delete recorded one.

namespace
required
string

Namespace id

limit
string

Maximum page size

cursor
string

Opaque trash page cursor

Recoverable deletions

One trash listing page: the namespace’s recoverable deletions.

object
entries
required

Recoverable deletions, oldest deletion first.

Array<object>

One recoverable deletion: an active subtree tombstone plus the identity of the binding it deleted, when the delete recorded one. Entries with no recorded name predate the enriched tombstone rows; their inode and sequence still form a complete undelete handle.

object
deleted_at_ms
required

Wall-clock stamp of the deleting commit. Observational.

integer format: int64
deleted_at_seq
required

Commit sequence of the deletion; the other half of the handle.

integer format: int64
display_name
One of:
null
name_key
One of:
null
parent_inode_id
One of:
null
root_inode_id
required

Root inode the deletion hid; half of the recovery handle.

integer format: int64
head_seq
required

Head sequence this page was evaluated at.

integer format: int64
namespace_id
required

Namespace that was read.

string
next_cursor

Present when another page follows.

string | null

Unauthorized

HTTP error body used by LoonFS APIs.

object
code
required

Stable machine-readable reason from the ErrorCode registry.

Carried as a string so clients keep working when a newer server introduces a code they do not know; use ErrorCode::parse for typed access.

string
details
One of:
null
feature

For not_supported errors, the capability-document feature key the client should reconcile against.

string | null
message
required

Human-readable error message.

string
request_id

Correlation id the server assigned to the failed request; the same value is sent as the x-request-id response header.

string | null

Namespace not found

HTTP error body used by LoonFS APIs.

object
code
required

Stable machine-readable reason from the ErrorCode registry.

Carried as a string so clients keep working when a newer server introduces a code they do not know; use ErrorCode::parse for typed access.

string
details
One of:
null
feature

For not_supported errors, the capability-document feature key the client should reconcile against.

string | null
message
required

Human-readable error message.

string
request_id

Correlation id the server assigned to the failed request; the same value is sent as the x-request-id response header.

string | null

Namespace deleted

HTTP error body used by LoonFS APIs.

object
code
required

Stable machine-readable reason from the ErrorCode registry.

Carried as a string so clients keep working when a newer server introduces a code they do not know; use ErrorCode::parse for typed access.

string
details
One of:
null
feature

For not_supported errors, the capability-document feature key the client should reconcile against.

string | null
message
required

Human-readable error message.

string
request_id

Correlation id the server assigned to the failed request; the same value is sent as the x-request-id response header.

string | null