Legacy custom expressions can be deleted by doing the following:
When using an LDAP server (which provides direct access to the server catalog):
- Login as admin
- Navigate to Authentication > Auth Servers and select the LDAP auth server.
- Click on Server Catalog.
- Click on Expressions.
- In the dropdown menu, click on the custom expression to delete.
- Click Delete.
When using any other auth server type that supports custom expressions (but no direct access to the server catalog), the following steps need to be taken:
- Login as admin
- Navigate to Users > User Realms and select the realm.
- Go to the Role Mapping tab.
- Select the rule with the custom expressions.
- Click on Expressions to open the expression library.
- From the dropdown click to select the expression to delete.
- Click Delete.