Learn how Scrivito CMS can help you deliver amazing digital experiences
See Scrivito CMS in action

Delete an object

Deletes a CMS object.

DELETE /tenants/:tenant_id/workspaces/:working_copy_id/objs/:obj_id

Params

  • tenant_id – The ID of the tenant.
  • working_copy_id – The ID of the working copy.
  • obj_id – The ID of the object to be deleted.

Response

The response is empty.

Error codes

  • precondition_not_met.obj_not_found
  • precondition_not_met.workspace_is_readonly
  • precondition_not_met.workspace_not_found

Example

curl \ -X DELETE \ -H 'Content-Type: application/json' \ -u 'api_token:MYTOKEN' \ https://api.scrivito.com/tenants/:tenant_id/workspaces/:ws_id/objs/:obj_id