Deleting static access keys
Management console
CLI
- Go to the folder that the service account belongs to.
- At the top of the screen, go to the Service accounts tab.
- Choose a service account and click the line with its name.
- Under Access keys, click
- In the window that opens, click Delete.
If you don't have the Nebius AI command line interface yet, install and initialize it.
-
Get a list of static key
IDs
for a specific service account. Specify the service account name in the--service-account-name
parameter:ncp iam access-key list --service-account-name <service account name>
Result:
+----------------------+----------------------+----------------------+ | ID | SERVICE ACCOUNT ID | KEY ID | +----------------------+----------------------+----------------------+ | aje8bdtqec6llp7fe49h | ajeedllrkjmam6jsn9n4 | R9JK04o1Dfaf1onhJ33a | | ajegqpa91btat1gvhvl6 | ajeedllrkjmam6jsn9n4 | cWXGkDoBRho5KISqk8An | +----------------------+----------------------+----------------------+
-
Delete the old static key. Instead of
<ID>
, specify the static key ID:ncp iam access-key delete <ID>