Delete a never-released draft item
DELETE
/api/v1/items/{itemId}
const url = 'https://app.avera.io/api/v1/items/2489E9AD-2EE2-8E00-8EC9-32D5F69181C0';const options = { method: 'DELETE', headers: {'Content-Type': 'application/json'}, body: '{"reason":"example"}'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request DELETE \ --url https://app.avera.io/api/v1/items/2489E9AD-2EE2-8E00-8EC9-32D5F69181C0 \ --header 'Content-Type: application/json' \ --data '{ "reason": "example" }'Appends a tombstone version, so the item leaves every list, search result, coverage figure and trace view on this branch while its versions and audit trail remain. Only a DRAFT that was never released may be deleted: a released item is retired through its obsolete transition, and a revision draft over a release is withdrawn through abandon-revision. The optional reason is carried onto the tombstone’s change record.
Parameters
Section titled “Parameters”Path Parameters
Section titled “Path Parameters”itemId
required
string format: uuid
Request Bodyrequired
Section titled “Request Bodyrequired”Media typeapplication/json
object
reason
string | null
Example generated
{ "reason": "example"}Responses
Section titled “Responses”OK