storage_archive
Soft-archive a Storage file or an empty Storage folder.
Same as console Archive on /app/storage: the row's status
flips to archived, lists and attachments hide it, bucket bytes and
join rows stay. Folders must be empty — a folder with active children
is refused with folder_not_empty (move or archive its children
first; archive never cascades). Returns {file_id, archived: true},
or archived: false with reason="not_found" for an unknown or
already-archived id. Needs memory:delete, as console archive does.
Not a purge: there is no hard delete of Storage objects. Shared-file
documents use file_archive.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| file_id | Yes | Storage object or folder UUID to archive |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||