Delete content items in bulk
const url = 'https://your-tenant-host/v1/content/custom/items/delete';const options = { method: 'POST', headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'}, body: '{"items":[{"sourceId":"post-123","language":"example"}]}'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request POST \ --url https://your-tenant-host/v1/content/custom/items/delete \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --data '{ "items": [ { "sourceId": "post-123", "language": "example" } ] }'Tombstones up to 100 items, each one locale or, with language null, every locale. 200 answers one result per entry, in request order: deleted, or rejected with its reason (unknown_item, invalid_language). Safe to retry: deleting a tombstone answers deleted again.
Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Path Parameters
Section titled “Path Parameters”The content source’s source key, as shown on its page in the console; custom for an organization’s first. It must be pushed: a pulled source, Arc XP or WordPress, answers 409.
Example
customThe content source’s source key, as shown on its page in the console; custom for an organization’s first. It must be pushed: a pulled source, Arc XP or WordPress, answers 409.
Request Bodyrequired
Section titled “Request Bodyrequired”object
At most 100; over is a 413.
object
The CMS’s id of the item.
Example
post-123The locale to delete. Null: every locale.
Responses
Section titled “Responses”One result per entry.
object
object
The locale deleted; null for every locale.
Open: accept a member not listed. Known: deleted, rejected.
Open: accept a member not listed. Known: invalid_language, unknown_content_type, scheduled_without_scheduled_at, unknown_site, duplicate_site, invalid_site_url, section_without_id, tag_without_id, author_without_id, invalid_image_url, invalid_block, invalid_value, unknown_item.
Example
{ "results": [ { "result": "deleted", "reason": "invalid_language" } ]}Invalid request.
object
object
Example
{ "error": { "code": "unauthorized", "message": "Invalid or missing API key." }}Missing or invalid credential.
object
object
Example
{ "error": { "code": "unauthorized", "message": "Invalid or missing API key." }}Not allowed.
object
object
Example
{ "error": { "code": "unauthorized", "message": "Invalid or missing API key." }}Resource not found.
object
object
Example
{ "error": { "code": "unauthorized", "message": "Invalid or missing API key." }}Conflicts with an existing record.
object
object
Example
{ "error": { "code": "unauthorized", "message": "Invalid or missing API key." }}Request body too large.
object
object
Example
{ "error": { "code": "unauthorized", "message": "Invalid or missing API key." }}Request validation failed.
object
object
Example
{ "error": { "code": "unauthorized", "message": "Invalid or missing API key." }}Unexpected error.
object
object
Example
{ "error": { "code": "unauthorized", "message": "Invalid or missing API key." }}With Retry-After, briefly unavailable; without it, not configured.
object
object
Example
{ "error": { "code": "unauthorized", "message": "Invalid or missing API key." }}