This section describes how to delete a storage class.

Warning

After a storage class is deleted, the persistent volume claims and persistent volumes created based on it will not be deleted. Containers can still use the mounted persistent volumes. However, users will no longer be able to use volume cloning, volume snapshot, and volume expansion features, and will not be able to create storage areas in the backend storage system through this storage class.

Prerequisites

You need to join a cluster and have the Storage Class Management permission in the cluster. For more information, see Cluster Members and Cluster Roles.

Delete a Single Storage Class

  1. Log in to the KubeSphere web console with a user who has Storage Class Management permissions and enter your cluster.

  2. Click Storage > Storage Classes in the left navigation pane.

  3. On the right side of the storage class you want to delete, click more, then select Delete from the dropdown list.

  4. In the Delete Storage Class dialog box, enter the name of the storage class, then click OK.

Batch Delete Storage Classes

  1. Log in to the KubeSphere web console with a user who has Storage Class Management permissions and enter your cluster.

  2. Click Storage > Storage Classes in the left navigation pane.

  3. Select the checkbox on the left of the storage classes you want to delete, then click Delete above the storage class list.

  4. In the Batch Delete Storage Classes dialog box, enter the names of the storage classes, then click OK.

    Note

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