Delete Storage Classes

This section explains how to delete a storage class.

Warning

After deleting a storage class, Persistent Volume Claims and Persistent Volumes created based on this storage class will not be deleted. Containers can still use the mounted Persistent Volumes, but users will no longer be able to use volume cloning, volume snapshots, and volume expansion features. Additionally, it will not be possible to create storage areas in the backend storage system using this storage class.

Prerequisites

You should join a cluster and have the Storage Class Management permission within the cluster. For more information, refer to “Cluster Members” and “Cluster Roles”.

Delete a Single Storage Class

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

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

  3. Click more on the right of the storage class you want to delete, then choose Delete from the dropdown list.

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

Delete Multiple Storage Classes

  1. Log in to the KubeSphere web console with a user who has the Storage Class Management permission, and access 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 Delete Multiple Storage Classes dialog, enter the name of the storage classes, then click OK.

    Note

    Please separate multiple names using a comma (,) and a space.