Request

Removes a specific component from a page. Use this to clean up orphaned component references after deleting a datasource item.

Security
HTTPBearer
Path
pageIdstring, (uuid)(Pageid)required

The unique identifier of the page. To get this ID, use List pages of a site.

Example:550e8400-e29b-41d4-a716-446655440000
componentIdstring, (uuid)(Componentid)required

The unique identifier of the component. To get this ID, use the List allowed components for a placeholder endpoint.

Example:86a03271-dff4-470a-92bd-b68c67de2e25
Query
languagestring or null(Language)
Example:language=en
Any of:

The language of the component.

string
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/pages/550e8400-e29b-41d4-a716-446655440000/components/86a03271-dff4-470a-92bd-b68c67de2e25?language=en' \
  -H 'Authorization: Bearer <YOUR_JWT_HERE>' \
  -H 'x-sc-job-id: job-1234'

Responses

Successful response

Bodyapplication/json
successboolean(Success)

Whether the component was successfully removed.

Example:true
removedComponentIdstring, (uuid)(Removedcomponentid)

The unique identifier of the removed component.

Example:"86a03271-dff4-470a-92bd-b68c67de2e25"
affectedExperimentsArray of objects(Affectedexperiments)

The A/B tests found on the removed component. archived=True only if this call successfully archived it.

Response
{ "success": true, "removedComponentId": "86a03271-dff4-470a-92bd-b68c67de2e25", "affectedExperiments": [ { … } ] }