logoBack to home screen

Deleting and Restoring Deleted Contents with REST

This document explains how to delete contents from a repository using ADx REST API.

To delete contents with REST

  1. Log in to ADx.

  2. 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.

  3. 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.

  4. Paste the content's technical ID into the ContentId field.

  5. Click Execute and check the response. Response 200 (success) is expected, meaning that the content is now deleted.

To delete contents permanently with REST

  1. Log in to ADx.

  2. 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.

  3. 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)

  1. Paste the content's technical ID into the ContentId field.
  2. Click Execute and check the response. Response 200 (success) is expected, meaning that the content is now deleted.

To restore deleted contents with REST

  1. Log in to ADx.

  2. 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.

  3. 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).

  4. Paste the content's technical ID into the entryId field.

  5. Click Execute and check the response. Response 200 (success) is expected, meaning that the content is now deleted.