Deleting and Restoring Deleted Contents with REST
This document explains how to delete contents from a repository using ADx REST API.
On this page
To delete contents with REST
-
Log in to ADx.
-
On the landing page, click the API link under repository where you want to delete the content:
Swagger page opens, showing the available ADx endpoints.
-
Find the
/access.adx.content.{your-repository-name}/v1/content (Delete Content By Id)
endpoint and expand it. Click Try it out to activate the fields.To delete folders, use the
/access.adx.content.demo/v1/folder Delete Folder By Id
endpoint. To delete any entry (content or folder), use the/access.adx.content.demo/v1/entry Delete Entry By Id
endpoint. -
Paste the content's technical ID into the ContentId field.
-
Click Execute and check the response. Response 200 (success) is expected, meaning that the content is now deleted.
To delete contents permanently with REST
-
Log in to ADx.
-
On the landing page, click the API link under repository where you want to delete the content:
Swagger page opens, showing the available ADx endpoints.
-
Find the
/access.adx.content.{your-repository-name}/v1/entry/physcially (Delete Entry Physically By Id)
endpoint and expand it. Click Try it out to activate the fields.
To delete multiple entries (contents) physically, find
/access.adx.content.ggr/v1/entries/physically (Delete Entries Physically By Id)
- Paste the content's technical ID into the ContentId field.
- Click Execute and check the response. Response 200 (success) is expected, meaning that the content is now deleted.
To restore deleted contents with REST
-
Log in to ADx.
-
On the landing page, click the API link under repository where you want to delete the content:
Swagger page opens, showing the available ADx endpoints.
-
Find the
/access.adx.content.{your-repository-name}/v1/entry/restore (Restore Entry By Id)
endpoint and expand it. Click Try it out to activate the fields.To restore multiple entries at the same time, find
/access.adx.content.{your-repository-name}/v1/entries/restore (Restore Entries By Id)
. -
Paste the content's technical ID into the entryId field.
-
Click Execute and check the response. Response 200 (success) is expected, meaning that the content is now deleted.