I migrated a service into a target Gateway. After realizing that the folder structure is not maintained (a topic for another thread, I guess), I decided to deleted the migrated policies/fragments. However, after trying to delete each fragment, I keep getting the following error:
<policy-name> cannot be deleted at this time; it is still in use by another policy
If dealing with and encapsulated assertion you will first need to delete the assertion from the policy manager. In the Policy Manager, select tasks, extensions and add-ons, Manage Encapsulated Assertion. Select the assertion in question and delete. Then you can delete it from policy. Its is not always easy knowing what policy may be using the assertion. Below is a link to a KB that was written for finding what policy may be using a particular assertion or policy fragment.
Managing Assertions - Manage Encapsulated Assertions - CA API Gateway - 9.2 - CA Technologies Documentation
Locate a policy using a particular assertion - https://support.ca.com/us/knowledge-base-articles.TEC1971838.html
Thanks, hogma01, removing the Encapsulated Assertion via Policy Manager did the trick. I was able to remove the policy and fragments after that.