#me_memory_delete_tree
Delete all memories under a tree prefix.
Use dry_run: true to preview how many memories would be deleted without actually removing them.
#Parameters
| Name | Type | Required | Description |
|---|---|---|---|
tree |
string |
yes | Tree prefix -- all memories at or below this path will be deleted. Must be non-empty. |
dry_run |
boolean |
yes | If true, return the count without deleting. If false, execute the deletion. |
#Returns
{
"count": 42
}
| Field | Type | Description |
|---|---|---|
count |
integer |
Number of memories deleted (or that would be deleted in dry-run mode). |
#Examples
#Preview deletion
{
"tree": "pack.datasync",
"dry_run": true
}
#Execute deletion
{
"tree": "pack.datasync",
"dry_run": false
}
#Notes
- This deletes memories at the exact path and all descendants.
tree: "work"deleteswork,work.projects,work.projects.me, etc. - The deletion is atomic -- all memories are deleted together or none are.
- Always preview with
dry_run: truefirst to avoid surprises. - This operation is irreversible. Consider using me_memory_mv to archive instead of deleting.