Empty agent trash
empty_trashPermanently delete an agent's trashed files to free up disk space. Use when the agent is idle, since it returns an error if the agent recently ran.
Instructions
Permanently empty one agent's trash. Deleting a file moves it into a trash that keeps counting against the account's disk until this is called — get_disk's trash_bytes says how much a call would free. Only works while the agent's pod is asleep: while it has run recently this returns an error asking you to wait for it to go idle (about two minutes with no run) or cancel the run first.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| agent_id | Yes | The agent's UUID whose trash to empty. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| disk | Yes | The account's disk state right after emptying, the same shape get_disk returns. | |
| bytes_freed | Yes | Bytes freed from the account's shared disk by this call: the account's trash total before minus after when both get_disk reads reported one, otherwise the account's used_bytes before minus after. 0 when nothing was freed or when neither figure was available to diff — the storage worker's own purge result is an entry count, not a byte count, so it cannot supply this number. |