Skip to main content

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 server profile template resources from an HPE OneView appliance.

Syntax

Remove-OVServerProfileTemplate
    [-InputObject] <Object>
    [-Force]
    [-ApplianceConnection <Object>]
    [-WhatIf]
    [-Confirm]
    [<CommonParameters>]

Description

Remove-OVServerProfileTemplate deletes the specified server profile template from HPE OneView. A template can only be deleted if no server profiles are currently derived from it; attempting to remove a template that still has derived profiles will result in an error. By default the cmdlet prompts for confirmation before deleting. Pass -Confirm:$false to suppress the prompt in automation scripts. The -Force switch can remove templates that are in an error state.
Deleting a server profile template is irreversible. All consistency-checking relationships between the template and its derived profiles will be severed. If derived profiles still exist, remove them first or detach them from the template before deleting the template.

Parameters

InputObject
object
required
The server profile template object to remove. Accepts pipeline input. Aliases: spt, name, ServerProfileTemplate.
Force
switch
Force removal of templates that are in an error state.
ApplianceConnection
object
Specifies the HPE OneView appliance connection. Defaults to the default connected session. Alias: Appliance.

Examples

Remove a template by name

Get-OVServerProfileTemplate -Name 'Hypervisor Cluster Node Template v1' | Remove-OVServerProfileTemplate
Prompts for confirmation before deleting the template.

Remove a template without confirmation

Get-OVServerProfileTemplate -Name 'Old Template' | Remove-OVServerProfileTemplate -Confirm:$false

Remove all templates whose names match a wildcard

Get-OVServerProfileTemplate -Name 'Dev-*' | Remove-OVServerProfileTemplate -Confirm:$false
Removes all templates with names beginning with Dev- without prompting.

Output

HPEOneView.Appliance.TaskResource — An async task object tracking the delete operation.

Build docs developers (and LLMs) love