How to Delete Block Storage Volumes from Kubernetes Clusters

DigitalOcean Kubernetes (DOKS) is a managed Kubernetes service that lets you deploy Kubernetes clusters without the complexities of handling the control plane and containerized infrastructure. Clusters are compatible with standard Kubernetes toolchains and integrate natively with DigitalOcean Load Balancers and block storage volumes.

You'll typically use a block storage volume when you want data to persist after a container process exits. If you delete volumes with kubectl using the pv, pvc, or pod option, the block storage volume will be permanently deleted.

When you've deleted a cluster from the control panel, the volume will not be automatically deleted and billing will continue. In this case, visit the control panel and manually delete the block storage volume.

Note that while you can currently delete block storage volumes and load balancers from the control panel, we recommend that you use kubectl to manage all cluster-related resources.

For more about managing persistent volumes, see: