memory_unshare
Revoke a memory share (#1088).
Drops one share target, or every share when all=true. Only the
row's author, or an org admin who can read it, may revoke (the rule
for sharing). Revoking only narrows who reads the row, so it is never
held for a person, even under share_scope: review. When no share is
left the row returns to visibility=private with its scope
unchanged. Under share_scope: org_wide the targets are only
recorded and any shared row is read by every member, so access ends
when the last one goes. Revoking a target that is not shared is a
no-op. A row you may not revoke answers unshared: false, reason: not_found, like a missing id.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| all | No | Revoke every share of this memory (no target_scope) | |
| memory_id | Yes | memory_items UUID to revoke a share on | |
| target_id | No | UUID of the team/project/user/agent; omit for org | |
| target_scope | No | Audience to revoke: org, team, project, user, or agent. Omit with all=true to revoke every share of this memory. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||