Page cover

statefulset

The delete statefulset command removes a specified StatefulSet from the Kubernetes cluster. This command deletes the StatefulSet and its associated pods. However, persistent storage volumes may remain and need to be cleaned up separately.

Usage

cldkctl delete statefulset [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 StatefulSets before deleting, refer to the get statefulset section.

  2. Run the following command in your terminal:

cldkctl delete statefulset [statefulset-name]
  1. Replace [staefulset-name] with the name of the StatefulSet you want to delete.

  2. Once completed successfully, a message “✓ StatefulSet 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 statefulset command.

Last updated