trash_memory
Move a memory file to trash so it stops being read or recalled, and get a restore token to undo the action if needed.
Instructions
DESTRUCTIVE BUT REVERSIBLE: move one curated memory file to trash so it stops being read or recalled. Writes to local disk and appends to the change timeline. Nothing is erased: the call returns a restore_token that restore_memory consumes to bring the file back, so keep that token in your reply if the user might change their mind. Guarded by expected_hash, so a stale hash fails without trashing anything. Prefer setting status='archived' with write_memory when the file should stay readable but stop being recalled. Parameters: address identifies the file to trash; expected_hash is its current content_hash from read_memory, confirming you are discarding the revision you actually saw; project_path project root whose memory tree the operation applies to. Omit it to use the machine-wide tree, and always omit it when this server was started pinned to a project. Returns an object with the trashed address and the restore_token needed to undo it.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| address | Yes | Stable docmancer://memory/<id> address, relative path, or exact title of the memory file. | |
| project_path | No | Project root whose memory tree the operation applies to. Omit it to use the machine-wide tree, and always omit it when this server was started pinned to a project. | |
| expected_hash | Yes | The file's current content_hash from a prior read_memory call. A stale value fails safely instead of overwriting a newer revision. |