Why
A key never revokes itself, so a revocation made with a key always leaves a management key in the environment.What to do
To replace the key, rotate it withPOST /v1/keys/rotate: it stops working when the overlap ends. To end it now, revoke it with another management key.
In the SDKs
The Node and Python SDKs raiseConflictError. The Go SDK returns *apierrors.ConflictError, which you match with errors.As.