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.
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.
- Production serverhttps://edge-platform.sitecorecloud.io/stream/ai-agent-api/api/v1/content/{itemId}
- curl
- JavaScript
- Node.js
- Python
- Java
- C#
- PHP
- Go
- Ruby
- R
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'Successful response
The unique identifier of the deleted content item.
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.
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.
The unique ID of the recycle bin entry the item was moved to. Use it to find or restore the item.
{ "success": true, "deletedId": "3f2504e0-4f89-11d3-9a0c-0305e82c3301", "affectedComponents": [ { … } ], "affectedExperiments": [ { … } ], "archiveId": "8a1f3c2e-7b6d-4e5f-9a0b-1c2d3e4f5a6b", "archiveName": "recyclebin" }