Deleting service accounts


    Deleting a service account is an operation that cannot be undone. You can't restore a deleted service account; you can only re-create it.

    1. Go to the folder that the service account belongs to.
    2. Go to the Service accounts tab.
    3. Click image next to the service account and select Delete service account.
    4. Confirm the deletion.

    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.

    1. See the description of the delete service account command:

      $ yc iam service-account delete --help
    2. Select a service account (for example, my-robot):

      $ yc iam service-account list
      |          ID          |       NAME       |          DESCRIPTION          |
      | aje6o61dvog2h6g9a33s | my-robot         |                               |
      | aje9sda1ufvqcmfksd3f | blabla           | bla bla bla is my description |
    3. Delete the service account:

      yc iam service-account delete my-robot

    To delete a service account, use the delete method for the ServiceAccount resource.