Vault Clear
Delete conversations from the vault using the delete_conversations MCP tool.
SAFETY: This is a destructive operation. Always preview before deleting. Never bulk-delete without a filter.
Argument Parsing
Parse $ARGUMENTS for:
- •--older-than: age threshold (e.g.
30d,6m,1y) - •--tag: delete conversations with this tag
- •--id: delete a specific conversation by UUID
At least one filter argument is required. If none are provided, tell the user they must specify at least one filter and show usage examples. Never call delete_conversations without at least one filter.
Examples
- •
/session-vault:vault-clear --older-than 30d— delete conversations older than 30 days - •
/session-vault:vault-clear --tag temp— delete conversations tagged "temp" - •
/session-vault:vault-clear --id abc12345— delete a specific conversation - •
/session-vault:vault-clear --older-than 90d --tag experiment— combine filters
Steps
- •
Validate arguments. Refuse to proceed if no filter arguments are provided.
- •
Preview first. Call
delete_conversationswithconfirm: falseand the parsed filters:- •
older_than: from--older-thanflag - •
tag: from--tagflag - •
ids: array containing the--idvalue if provided
- •
- •
Show the preview to the user:
- •Number of conversations that would be deleted
- •List each one with: short ID, project, summary, date, tags
- •Clearly state: "These conversations will be permanently deleted."
- •
Ask for explicit confirmation. Wait for the user to confirm before proceeding. Do not auto-confirm.
- •
If confirmed, call
delete_conversationsagain with the same filters andconfirm: true. - •
Report the result: number of conversations deleted and their IDs.