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 resources from an HPE OneView appliance. The server associated with the profile is powered off and the profile is deleted.Syntax
Description
Remove-OVServerProfile deletes the specified server profile from HPE OneView. If the profile is assigned to a server, the server must be powered off before the profile can be removed.
By default the cmdlet prompts for confirmation before deleting. Pass -Confirm:$false to suppress the prompt in automation scripts.
When -RetainStorageConfig is specified, any SAN volumes attached through the profile are preserved in HPE OneView rather than being removed with the profile.
The -Force switch can remove profiles that are in an error state or that cannot be cleanly deleted through normal means.
Parameters
The server profile object to remove. Accepts pipeline input. Aliases:
uri, name, profile, ServerProfile.Preserve SAN volume attachments in HPE OneView when the profile is removed, rather than deleting them.
Force removal of profiles that are in an error state.
Specifies the HPE OneView appliance connection. Defaults to the default connected session. Alias:
Appliance.Examples
Remove a single profile by name
Web-Node-01 profile.
Remove a profile without confirmation
Remove all unassigned profiles
Remove a profile and retain its SAN volumes
Force-remove a profile stuck in an error state
Output
HPEOneView.Appliance.TaskResource — An async task object tracking the delete operation.