When I am trying to delete a policy it failed with error message
How should I delete it if I have to? A new one will be replaced later.
Hello Naichun Ding,
This policy is still in use, in this case an encapsulated assertion of the same name. You will need to remove it from there first, before being able to delete it. May I recommend instead of deleting the policy disabling for the time being, in case you decide to use it at a later time. That is the recommended action.
Here is a link to our doc that goes over deleting a policy: Delete a Policy - CA API Gateway - 9.3 - CA Technologies Documentation