This section describes how to delete a service account.

Warning

After a service account is deleted, applications using the service account will not be able to access the KubeSphere cluster. Please perform this operation with caution.

Prerequisites

You need to be a member of a cluster and have the cluster-admin role in the cluster.

Delete a Single Service Account

  1. Log in to the KubeSphere web console as a user with the cluster-admin role and go to your cluster.

  2. Click Configuration > Service Accounts in the left navigation pane.

  3. On the right side of the service account you want to delete, click more, and then select Delete from the drop-down list.

  4. In the Delete Service Account dialog box, enter the name of the service account, and then click OK.

Delete Multiple Service Accounts in Batches

  1. Log in to the KubeSphere web console as a user with the cluster-admin role and go to your cluster.

  2. Click Configuration > Service Accounts in the left navigation pane.

  3. Select the checkbox on the left of the service account you want to delete, then click Delete above the service account list.

  4. In the Batch Delete Service Accounts dialog box, enter the name of the service account, then click OK.

    Note

    Use commas (,) and spaces to separate multiple names.