CH·02CLI reference
deeprelay files delete
Delete a file and its content now
Delete a file and its content now
Synopsis
Deletes a file and its stored content immediately. There are no versioned or replicated copies, so nothing is left to purge. Without --yes the CLI asks for confirmation; a non-interactive run without --yes deletes nothing.
The input file of a batch that is still queued or running cannot be deleted: the server answers 409 (file_in_use). Cancel the batch first with deeprelay batches cancel, or wait for it to finish. Files you do not delete are removed automatically 30 days after their batch finishes.
Examples
deeprelay files delete file-abc123
# In a script
deeprelay files delete file-abc123 --yes
deeprelay files delete <file-id> [flags]
Options
-h, --help help for delete
--yes Delete without the confirmation prompt
Options inherited from parent commands
--api-base string API base URL (override with DEEPRELAY_API_BASE env) (default "https://api.deeprelay.ai/v1")
--debug Enable debug logging to stderr
--no-preflight Skip the plan/credit check before inference requests (override with DEEPRELAY_NO_PREFLIGHT env)
-o, --output string Output format: table|json (default table on TTY, json otherwise) (default "table")
SEE ALSO
- deeprelay files - Upload and manage batch input and result files