Fix incorrect constraints on deleting API keys.