Skip to content

chainabit memory 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 the memories in a confirmed preview

Synopsis ​

text
chainabit memory delete [options]

Options ​

OptionDescriptionDefault
--preview-token <token>Preview token—
--yesConfirm deletion—

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

Behavior ​

Deletes the memories selected by a preview token from chainabit memory delete-preview. Both --preview-token and --yes are required, and the command never prompts: without either one it changes nothing, tells you to run delete-preview first and then pass --preview-token and --yes, and exits with code 2. A token the server does not recognize is refused with an error and a non-zero exit code, and nothing is deleted. Repeating the command with a token that was already used reports the same result marked as replayed.

Output ​

Prints the number of memories deleted. With --json, the output contains success, deletedCount and preview (false); a repeated token also adds replayed set to true.

Authentication and permissions ​

You must be signed in. The server decides whether your account may make this change; if it refuses, the command prints the error, exits with a non-zero code and changes nothing. If the connected API does not support the operation yet, the command stops before sending anything.

Examples ​

The token below is a placeholder; use the one that memory delete-preview printed.

bash
chainabit memory delete --preview-token 00000000-0000-4000-8000-000000000001 --yes

Built with purpose. chainabit.com