NAME

Remove-DcsLogicalDisk

SYNOPSIS

Removes a logical disk from a server.

SYNTAX

Remove-DcsLogicalDisk   -LogicalDisk <Object>   [ -Yes]   [ -Connection <String> ]   [ -PipelineVariable <String> ]   [ -WhatIf]   [ -Confirm]

DESCRIPTION

Removes a logical disk from a server. The logical disk to be removed must not be part of a virtual disk. The logical disk will be deleted and the resources will be unallocated and returned to the pool.

PARAMETERS

-LogicalDisk<Object>
LogicalDiskData object, ID, or caption that identifies the logical disk to be removed.

Required: true
Position: named
Default value:
Accept pipeline input: true (ByValue)
Accept wildcard characters: false

-Yes<SwitchParameter>
Removing a logical disk is an operation that requires confirmation. Specify this parameter to confirm your intention to remove the logical disk and prevent user interaction during scripted scenarios.

Required: false
Position: named
Default value:
Accept pipeline input: false
Accept wildcard characters: false

-Connection<String>
Alias of the connection to the server group. If not specified, the default connection is used.

Required: false
Position: named
Default value:
Accept pipeline input: false
Accept wildcard characters: false

-PipelineVariable<String>

Required: false
Position: named
Default value:
Accept pipeline input: false
Accept wildcard characters: false

-WhatIf<SwitchParameter>

Required: false
Position: named
Default value:
Accept pipeline input: false
Accept wildcard characters: false

-Confirm<SwitchParameter>

Required: false
Position: named
Default value:
Accept pipeline input: false
Accept wildcard characters: false

INPUTS

LogicalDiskData : Object the identifies and describes the logical disk.

OUTPUTS

NOTES

Also see Add-DcsLogicalDisk, Get-DcsLogicalDisk, Replace-DcsVirtualDiskSource.

EXAMPLES


-------------- Example 1 Removes a logical disk specified by Id --------------
Remove-DcsLogicalDisk -LogicalDisk "LD:84972D6B-7E71-4616-BDA1-57ECEAF3FFC4_V.{ea7c7a80-bdf3-11e0-8304-00155d11e921}-00000044" -Yes
		

Removes the logical disk with the ID of "LD:84972D6B-7E71-4616-BDA1-57ECEAF3FFC4_V.{ea7c7a80-bdf3-11e0-8304-00155d11e921}-00000044" from the server group. The Yes parameter is included to eliminate the need to confirm the operation.