Deleting an access key
Written by
Updated at October 30, 2026
If you have a static access key for Object Storage, you can delete it. Once you delete the key, all applications utilizing it, as well as any temporary STS keys generated on its basis, 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 accesskey -n <project_name> -
Delete an access key:
kubectl delete accesskey <key_name> -n <project_name>The associated secret is deleted automatically.
-
Make sure the key has been deleted:
kubectl get accesskey -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.