Compoid_delete_record
Destructive
Delete a published Compoid record. IRREVERSIBLE.
The record is tombstoned and drops out of all search results. Use it to
clean up test records. Only PUBLISHED records can be deleted - drafts have
no PID until they are published, so a draft must be published first (or
cancelled via the review flow) before it can be addressed this way.
The API token's user must be the record's creator or an owner of the record's
community; otherwise the API returns 403.
Required:
work_id: the record to delete - a published record PID (e.g.
'4171t-rc787'), a full record URL
(https://www.compoid.com/records/<pid>), or its OAI.
On success returns a confirmation (HTTP 204). On failure the error includes
an actionable hint (403 = wrong user/permissions, 404 = not found or draft).
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| work_id | Yes |
Output Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |