SAP Message SAML2059 - Entity &1 in client &3 is stillused in logon policy &2

Diagnosis
The entity cannot be deleted as long as a logon policy is referenced.

System Response
The entity cannot be deleted.

Procedure
Remove the reference to the entity from the logon policy and then deletethe entity.