Remove-OVStorageVolumeTemplate
Syntax
Remove-OVStorageVolumeTemplate
[-InputObject] <Object>
[-ApplianceConnection <Object>]
[-Force]
[<CommonParameters>]
Description
Delete one or more storage volume templates from the appliance configuration.
Examples
Example 1
Remove the storage volume template specifed by name. Wait for remove to complete.
Example 2
$svt = Get-OVStorageVolumeTemplate -name "yellow"
Remove-OVStorageVolumeTemplate -name $svt -confirm:$false
Remove the network specifed by $svt, and do not prompt for confirmation.
Example 3
Search for all storage volume templates and remove them from appliance.
Parameters
-InputObject <Object>
Aliases [-name, -uri, -TemplateName., -Template]
The Storage Volume Template object(s), name(s) or URI(s) to be deleted.
| Aliases | uri, name, templateName, Template |
|---|---|
| Required? | True |
| Position? | Named |
| Default value | |
| Accept pipeline input? | true (ByValue) |
| Accept wildcard characters? | False |
-ApplianceConnection <Object>
Specify one or more [HPEOneView.Appliance.Connection] object(s) or Name property value(s). If Resource object is provided via Pipeline, the ApplianceConnection property of the object will be used.
Default Value: ${Global:ConnectSessions}
| Aliases | Appliance |
|---|---|
| Required? | False |
| Position? | Named |
| Default value | (${Global:ConnectedSessions} | ? Default) |
| Accept pipeline input? | true (ByPropertyName) |
| Accept wildcard characters? | False |
-Force <SwitchParameter>
Specify to remove the resource despite any problems with network connectivity or errors on the resource itself.
When the request is accepted by the appliance, it does not return an Async Task Resource.
| Aliases | None |
|---|---|
| Required? | False |
| Position? | Named |
| Default value | False |
| Accept pipeline input? | false |
| Accept wildcard characters? | False |
-WhatIf <SwitchParameter>
| Aliases | wi |
|---|---|
| Required? | False |
| Position? | Named |
| Default value | |
| Accept pipeline input? | false |
| Accept wildcard characters? | False |
-Confirm <SwitchParameter>
| Aliases | cf |
|---|---|
| Required? | False |
| Position? | Named |
| Default value | |
| Accept pipeline input? | false |
| Accept wildcard characters? | False |
<CommonParameters>
This cmdlet supports the common parameters: Verbose, Debug, ErrorAction, ErrorVariable, WarningAction, WarningVariable, OutBuffer, PipelineVariable, and OutVariable. For more information, see about_CommonParameters (http://go.microsoft.com/fwlink/?LinkID=113216)
Input Types
Storage Volume Template resource object
Multiple Storage Volume Template resources
Return Values
Removal async task
When using the -Force parameter, a PSCustomObject is returned indicating successful removal of the resource