Skip to content

chainabit file delete ​

Published (2.2.0) ​

This command is not included in Published (2.2.0). It is available in Development (2.2.0).

Development (2.2.0) ​

Delete a workspace file

Synopsis ​

text
chainabit file delete <id> [options]

Arguments ​

ArgumentDescriptionDefault
<id>Required.—

Options ​

OptionDescriptionDefault
--yesConfirm this change—

Options shared by every command are described in Global options and shared behavior.

Behavior ​

Deletes the file with the given ID. Deletion needs explicit consent: without --yes the command refuses with exit code 2 before sending anything, including with --json. After a successful deletion the file can no longer be downloaded and its size no longer counts toward the account's storage usage.

Output ​

The command prints a confirmation. With --json, the output contains changed set to true.

Authentication and permissions ​

You must be signed in. If the service refuses the deletion, the command fails with an error and nothing is deleted.

Examples ​

bash
chainabit file delete 00000000-0000-4000-8000-000000000001 --yes

Built with purpose. chainabit.com