Deleting an access key
Written by
Updated at April 8, 2026
If you have an access key for Object Storage, you can delete it. Once you delete the key, the applications that rely on it will lose access to the storage.
Warning
Deleting an access key is irreversible. Make sure that your apps no longer use the key.
CLI
Management console
-
Get a list of access keys in the project:
kubectl get apikey -n <project_name> -
Delete an access key:
kubectl delete apikey <key_name> -n <project_name> -
Optionally, delete the associated secret:
kubectl delete secret <secret_name> -n <project_name> -
Delete the service account if you no longer need it:
kubectl delete serviceaccount <service_account_name> -n <project_name> -
Delete the role assignment:
kubectl delete accessbinding <assignment_name> -n <project_name>
- If you have not opened a project yet, select one.
- In the left-hand menu, select Service accounts.
- Select a service account.
- Go to the Access keys tab.
- Find the key and click Delete.
- Confirm the deletion.
What's next
- Learn how to create a new access key.
- Check out the Identity and Access Management guides.