Deleting a service account
Warning
Deleting a service account is permanent. You can't restore a deleted service account; you can only re-create it.
Management console
CLI
- In the management console
, select the folder the service account belongs to. - At the top of the screen, go to the Service accounts tab.
- Click
- In the window that opens, click Delete.
If you don't have the Nebius AI command line interface yet, install and initialize it.
The folder specified in the CLI profile is used by default. You can specify a different folder using the --folder-name
or --folder-id
parameter.
-
See the description of the delete service account command:
ncp iam service-account delete --help
-
Select a service account (for example,
my-robot
):ncp iam service-account list
Result:
+----------------------+------------------+-------------------------------+ | ID | NAME | DESCRIPTION | +----------------------+------------------+-------------------------------+ | aje6o61dvog2******** | my-robot | | | aje9sda1ufvq******** | account_name | account_description | +----------------------+------------------+-------------------------------+
-
Delete the service account:
ncp iam service-account delete my-robot
Note
You cannot delete a service account while it is linked to some cloud resources. First, update the service account in the resource settings or delete the resource and then delete the service account.