Remove-CnsVolume Command | Vmware PowerCLI Reference

Remove-CnsVolume

This cmdlet removes the specified Cloud Native Storage (CNS) volumes.

Syntax

Remove-CnsVolume
-CnsVolume < CnsVolume[] >
[-RunAsync ]
[-Server < VIServer[] > ]
[CommonParameters]

Parameters

Required Parameter Name Type Position Features Description
required
CnsVolume CnsVolume[] named
  • pipeline
  • wildcards
Specifies the CNS volumes you want to remove.
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 VMware 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 &#60CnsVolume&#62 -VM &#60VirtualMachine&#62 [-Server &#60VIServer[]&#62] [-RunAsync] [-WhatIf] [-Confirm] [&#60CommonParameters&#62]

Remove-CnsVolumeAttachment -CnsVolume &#60CnsVolume&#62 -VM &#60VirtualMachine&#62 [-Server &#60VIServer[]&#62] [-RunAsync] [-WhatIf] [-Confirm] [&#60CommonParameters&#62]

CnsVolumeMetadata

This cmdlet creates a Cloud Native Storage (CNS) volume metadata at the client side.