"Unable to delete entity because it's being used in one or more policies" error


Description

A taxonomy, or a taxonomy child value, cannot be deleted if it is referenced in some user group policy or policies. The following error appears in the UI:

Solution

To be able to delete a taxonomy, or a taxonomy child value:

  1. On the menu bar, click the Manage icon.
  2. On the Manage page, navigate to Import/Export.
  3. On the Import/Export page, in the Export section, select the Policies check box and click Export.
  4. Click View downloads at the right bottom of the screen.
  5. On the Downloads page, click the Downoload Order icon when the status of the package is "READY" for download.
  6. Unzip the downloaded package.
  7. Using a text editor, check the exported JSON files for references ("href") to the taxonomy, or the taxonomy child value, that you need to delete.

    Note: You can use Notepad++ and the Find in Files feature to check all the files at once.

  8. Delete the found references and save the changes in the updated JSON files.
  9. Zip all the files (the updated ones and those that did not require changes) keeping the structure of the package that was previously downloaded from Content Hub.

    Note: After the new package has been created, you need to compare the original archive with the new one to make sure that their structure is the same.

  10. Import the new package by using the Import/Export functionality.