Delete a doc (notes and handoffs: members; brief: project admins only, 403 `doc_admin_only`). It stays in the history and can be brought back with restore_doc_version.
delete_docDelete a doc (notes and handoffs: members; brief: project admins only, 403 doc_admin_only). It stays in the history and can be brought back with restore_doc_version.
Pass the version from get_doc. Only delete when the user asked for it. The doc stays in its history and restore_doc_version brings it back. Never delete a doc to "fix" a bad edit — use get_doc_history + restore_doc_version instead. The brief: project admins only (403 doc_admin_only).
WRITE: version = from your latest read (get_issue, list_comments, list_sprints, get_doc, read_file). 409 version_conflict (details.current, details.current_version): re-read, re-apply your change, retry — never overwrite blindly; when the changes disagree, ask the user.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| kind | Yes | Project docs (spec D76): `brief` = why the project exists, goals, business and tech structure; `notes` = working notes / progress; `handoffs` = hand-over to teams or the whole project; `company_brief` = the company's rules and guidelines (read-only in project routes). | |
| slug | Yes | File name of a doc without `.md`: lowercase a–z 0–9 and `-` (brief, notes, company brief) or `H-{n}` (handoffs). | |
| reason | No | Spec D144: why you make this change (≤ 200 characters). Optional, but give it when you act as an agent account — it is shown in the agent's run log. board-mcp records it; the service accepts and ignores it. | |
| version | Yes | Version of the file you read. Required on every delete (spec principle 7). | |
| project_key | Yes | Project key, e.g. `KJ`. 2–10 chars, uppercase letters and digits, starts with a letter. |