When attempting to remove a Proxy following a failed deployment in the API Developer Portal , the operation fails with the following error:
Error: KeyStoreUuid : [UUID] The Key Store With Proxies assigned cannot be deleted.
This occurs even after attempting standard cleanup procedures outlined in the installation documentation for failed gateway deployments.
All Supported versions of API Portal/ Gateway.
This error is triggered when API keys retain active OAUTH_TYPE associations in the database. The system prevents the deletion of a keystore if it is still linked to API proxies, and these database associations prevent the deletion of those proxies.
To resolve this issue, you must manually update the OAUTH_TYPE field in the portal database.
Warning: Before running any database update commands, ensure you have a full, verified backup of your API Developer Portal database.
Access your portal database.
Execute the following SQL command to set the OAUTH_TYPE to null for keys that are not public or confidential:
Once the update is successful, return to the API Developer Portal UI.
Navigate to the API Proxy page.
Retry the deletion of the API proxy. It should now proceed without the previous "Key Store With Proxies assigned" error.
Proceed with the remaining steps of your keystore cleanup process as documented.