Unshare
unshareRevoke access to a shared knowledge base for one person or all readers. Preview the scope, then confirm to cut off a reader or take the knowledge base down entirely.
Instructions
STOP sharing — either with ONE person, or with everybody. reader picks which.
READ THIS BEFORE CALLING. The two scopes are not the same act and only one of them is
expensive to undo:
• reader="Leo" → Leo loses access. Everyone else keeps reading, the served copy
stays, and you can invite Leo again with share whenever you like.
• reader omitted → EVERY reader is cut off AND the served copy is deleted. Every
invite ever sent stops working, so sharing again means re-inviting everyone by hand.
So when the user names a person — "stop sharing with Leo", "cut Leo off", "revoke Leo" —
reader is REQUIRED. Omitting it there does something much larger than what was asked,
and the preview is where you catch that: it always says which of the two scopes it is
about, in its first sentence.
Reach for the whole-knowledge-base form when the user says stop sharing / unshare / take my knowledge base down / revoke everyone. That form is one act and not two, because a person who says "stop sharing my KB" means both halves and will not say it twice.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| reader | No | WHO to cut off, matched against the label you gave when you shared (`share`'s `for_whom`), case-insensitively. A token hash from a previous preview also works, which is how you name a reader you never labelled. Omit ONLY when the user means everybody. | |
| confirm | No | False (default) = preview only; True = do it. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||