Documentation Index
Fetch the complete documentation index at: https://mintlify.com/HewlettPackard/POSH-HPEOneView/llms.txt
Use this file to discover all available pages before exploring further.
Synopsis
Removes a storage volume from HPE OneView, either deleting it from the storage array entirely or only removing it from OneView management while preserving the data.Syntax
Description
Remove-OVStorageVolume removes a storage volume from HPE OneView. By default, it deletes the volume from both HPE OneView and the underlying storage array — this destroys the volume and all data it contains.
Use -ExportOnly to remove the volume only from HPE OneView management without touching the physical volume on the array. This is useful when decommissioning a OneView appliance or when ownership of the volume is being transferred to another management system.
The cmdlet supports -WhatIf and -Confirm due to its ConfirmImpact = High declaration. You will be prompted to confirm deletion unless you pass -Confirm:$false.
Parameters
The storage volume to remove. Accepts pipeline input from
Get-OVStorageVolume. Also accepts the volume’s URI string or name string. Aliased as uri, name, and StorageVolume.When specified, removes the volume record from HPE OneView management only. The volume and all its data remain intact on the storage array. Use this to “unmanage” a volume without destroying it.
Returns the task object immediately without waiting for the deletion to complete on the storage array.
HPE OneView appliance connection. Defaults to the default connected session. Aliased as
Appliance.Prompts for confirmation before executing. Use
-Confirm:$false to suppress the prompt in automation scripts.Examples
Remove a volume interactively (with confirmation prompt)
Remove a volume without a confirmation prompt (automation)
Dry-run to see what would be deleted
Remove a volume from OneView management only (keep data on array)
Remove all unattached volumes in bulk
Output
HPEOneView.Appliance.TaskResource
An asynchronous task tracking the deletion. Pipe to Wait-OVTaskComplete to wait for completion before proceeding.