Appearance
Safety
Deletion is permanent
TorBox's delete operation removes the item from the download client and your account. There is no trash or undo.
torbox-cleaner has the following safeguards:
- No default action. Running with no selection flag is an error. You must pass
--delete-all,--filter-size, or--filter-name. - Dry run.
--dry-runfetches and prints the selection, then exits without sending any delete requests. - Typed confirmation. Without
--yes, you must typeyesat the prompt. Anything else aborts. - No silent non-interactive deletes. If stdin isn't a terminal (cron, CI, pipes) and
--yesis missing, the tool exits with code2and deletes nothing. - Per-item deletes. Items are deleted one at a time by ID, not with the API's
all: trueshortcut, so only the items you saw listed are touched.
Rate limits
TorBox allows 300 requests per minute per API token. Deletes are spaced 250 ms apart (about 240 per minute). HTTP 429 and 5xx responses are retried up to five times with exponential backoff, honouring Retry-After.
Exit codes
| Code | Meaning |
|---|---|
0 | Success, or nothing matched |
1 | API error, one or more deletes failed, or you aborted at the prompt |
2 | Usage error, or confirmation required in a non-interactive shell |
130 | You canceled setup |
Protecting your API key
--setupmasks the key with asterisks as you type or paste it. Terminal echo is turned off before the prompt appears, so even an instant paste is never shown in plain text.- The
.envfile is written atomically with permissions0600, so only your user can read it. The~/.config/torbox-cleanerfolder is created with permissions0700. .envfiles are listed in.gitignore.