Remove-CnsVolume
This cmdlet removes the specified Cloud Native Storage (CNS) volumes.
Syntax
Parameters
| Required | Parameter Name | Type | Position | Features | Description | 
|---|---|---|---|---|---|
|                                  required 
                                 | 
                            CnsVolume | CnsVolume[] | named | 
                                
  | 
                            Specifies the CNS volumes you want to remove. | 
| optional | ProgressAction | ActionPreference | named | 
                                 | 
                            |
| optional | RunAsync | SwitchParameter | named | 
                                 | 
                            Indicates that the command returns immediately without waiting for the task to complete. In this mode, the output of the cmdlet is a Task object. For more information about the RunAsync parameter, run "help About_RunAsync" in the VCF PowerCLI console. | 
| optional | Server | VIServer[] | named | 
                                 | 
                            
Output
Examples
Example 1
Remove-CnsVolume -CnsVolume $CnsVolume -Confirm:$false
Removes the $CnsVolume CNS volume without asking for confirmation.
Related Commands
CnsContainerCluster
This cmdlet creates a vSAN file service IP configuration at the client side.
CnsKubernetesEntityMetadata
This cmdlet creates a Cloud Native Storage (CNS) Kubernetes entity metadata at a client side.
CnsKubernetesEntityReference
This cmdlet creates a Cloud Native Storage (CNS) Kubernetes entity reference at the client side.
CnsVolume
This cmdlet retrieves a Cloud Native Storage (CNS) volume based on the name or ID filter.
This cmdlet creates a Cloud Native Storage (CNS) volume.
This cmdlet removes the specified Cloud Native Storage (CNS) volumes.
This cmdlet modifies the Cloud Native Storage (CNS) volume metadata of a specified CNS volume.
CnsVolumeAttachment
New-CnsVolumeAttachment -CnsVolume <CnsVolume> -VM <VirtualMachine> [-Server <VIServer[]>] [-RunAsync] [-WhatIf] [-Confirm] [<CommonParameters>]
Remove-CnsVolumeAttachment -CnsVolume <CnsVolume> -VM <VirtualMachine> [-Server <VIServer[]>] [-RunAsync] [-WhatIf] [-Confirm] [<CommonParameters>]
CnsVolumeMetadata
This cmdlet creates a Cloud Native Storage (CNS) volume metadata at the client side.