Remove-OVServerProfileTemplate
Syntax
Remove-OVServerProfileTemplate
[-InputObject] <Object>
[-ApplianceConnection] <Object>
[-Force]
[<CommonParameters>]
Description
Delete one or multiple Server Profile Template resource(s). A Server Profile Template cannot be removed if there are linked Server Profiles.
Examples
Example 1
$spt = Get-OVServerProfileTemplate -name "My Template Profile" -ErrorAction Stop
Remove-OVServerProfileTemplate -InputObject $spt -Confirm:$false
Remove the profile template specifed by $spt. Disable confirmation prompt.
Example 2
Search for all profile template resources and remove them from appliance.
Parameters
-InputObject <Object>
The server profile template object to be removed.
| Aliases | spt, name, ServerProfileTemplate |
|---|---|
| Required? | True |
| Position? | Named |
| Default value | |
| Accept pipeline input? | true (ByValue) |
| Accept wildcard characters? | False |
-ApplianceConnection <Object>
Specify one [HPEOneView.Appliance.Connection] object or Name property value. If Resource object is provided via Pipeline, the ApplianceConnection property of the object will be used.
| Aliases | Appliance |
|---|---|
| Required? | True |
| Position? | Named |
| Default value | (${Global:ConnectedSessions} | ? Default) |
| Accept pipeline input? | true (ByPropertyName) |
| Accept wildcard characters? | False |
-Force <SwitchParameter>
Set to force-delete the profile. For example, force-remove will successfully remove the profile, even when connectivity has been lost to the server or enclosure.
| 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
Server Profile Template resource object.
Server Profile Template resource name.
Return Values
A task resource that can be monitored for status of the profile deletion
Multiple Async task resources.