Request

Deletes a content item and optionally all of its child items.

Security
HTTPBearer
Path
itemIdstring, (uuid)(Itemid)required

The unique identifier of the content item to be deleted.

Example:3f2504e0-4f89-11d3-9a0c-0305e82c3301
Query
languagestring(Language)

The language version of the content item.

Note: Deleting a content item removes the item across all language versions. The language parameter does not limit deletion to a specific language version.

Default:"en"
Example:language=en
Headers
x-sc-job-idany(X-Sc-Job-Id)

A unique identifier for the job, used to trace, audit, and revert actions performed by an AI agent through the Agent API.

Example:job-1234
curl -i -X DELETE \
  'https://edge-platform.sitecorecloud.io/stream/ai-agent-api/api/v1/content/3f2504e0-4f89-11d3-9a0c-0305e82c3301?language=en' \
  -H 'Authorization: Bearer <YOUR_JWT_HERE>' \
  -H 'x-sc-job-id: job-1234'

Responses

Successful response

Bodyapplication/json
successboolean(Success)

Whether the content item was deleted successfully.

Example:true
deletedIdstring, (uuid)(Deletedid)

The unique identifier of the deleted content item.

Example:"3f2504e0-4f89-11d3-9a0c-0305e82c3301"
Response
{ "success": true, "deletedId": "3f2504e0-4f89-11d3-9a0c-0305e82c3301" }