Request

Deletes a content item and all its child items across all languages by moving them to the recycle bin, where they can be restored. If remove_references=true, all page components that use the item as a datasource are also removed. The response includes archiveId and archiveName to identify the item in the recycle bin.

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 used to check (and, with remove_references=true, remove) page references to the 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
remove_referencesboolean(Remove References)

Whether to remove references to the content item from other items.

Default:false
Example:remove_references=false
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&remove_references=false' \
  -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"
affectedComponentsArray of objects(Affectedcomponents)

The components that referenced the deleted item. This is always populated regardless of remove_references. You will see removed=True when the component was cleaned up.

affectedExperimentsArray of objects(Affectedexperiments)

The A/B tests found on affected components. You will see archived=True only when the component was actually removed and the test was successfully archived.

archiveIdstring or null(Archiveid)
Example:"8a1f3c2e-7b6d-4e5f-9a0b-1c2d3e4f5a6b"
Any of:

The unique ID of the recycle bin entry the item was moved to. Use it to find or restore the item.

string
archiveNamestring or null(Archivename)
Example:"recyclebin"
Any of:

Name of the Sitecore archive the item was moved to.

string
Response
{ "success": true, "deletedId": "3f2504e0-4f89-11d3-9a0c-0305e82c3301", "affectedComponents": [ { … } ], "affectedExperiments": [ { … } ], "archiveId": "8a1f3c2e-7b6d-4e5f-9a0b-1c2d3e4f5a6b", "archiveName": "recyclebin" }