Unable to delete orphaned Policies

Related to

Access

What is the error message?

Access api error conflict: policy is being used by at least one app

What is the issue you’re encountering

Unable to delete an Access Policy as the system believes that it is connected to an Application that has been deleted

What steps have you taken to resolve the issue?

I have looked for all ways to remove the orphaned policy to no avail. There is no way to remove it as it believes it is connected to an Application that no longer exists.

What are the steps to reproduce the issue?

Create a SaaS Application
Create a Policy and link to SaaS Application
Delete SaaS Application
Unable to delete policy as it is now orphaned

Screenshot of the error


It is also worth noting that there are currently no Applications registered … hence the policies are orphaned and cannot be removed.