Page cover

persistentvolumeclaim

The delete persistentvolumeclaim command removes a specified Persistent Volume Claim (PVC) from the Kubernetes cluster. Deleting a PVC releases its claim on a Persistent Volume (PV), but the underlying storage may persist depending on the reclaim policy of the PV.

Usage

cldkctl delete persistentvolumeclaim [name] [flags]

Steps

Follow the steps below to run and view the result of this command:

  1. If you want to view the list of Persistent Volume Claims before deleting, refer to the get persistentvolumeclaim section.

  2. Run the following command in your terminal:

cldkctl delete persistentvolumeclaim [persistentvolumeclaim-name]
  1. Replace [persistentvolumeclaim-name] with the name of the Persistent Volume Claim you want to delete.

  2. Once completed successfully, a message “✓ PersistentVolumeClaim deleted” will appear in your terminal.

Flags

This command supports global flags. Refer to the Global Flags section for details

Flag
Description

-h, --help

Help for delete persistentvolumeclaim command.

Last updated