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
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.
Parameters
The server profile template object to remove. Accepts pipeline input. Aliases:
spt, name, ServerProfileTemplate.Force removal of templates that are in an error state.
Specifies the HPE OneView appliance connection. Defaults to the default connected session. Alias:
Appliance.Examples
Remove a template by name
Remove a template without confirmation
Remove all templates whose names match a wildcard
Dev- without prompting.
Output
HPEOneView.Appliance.TaskResource — An async task object tracking the delete operation.