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 one or more server hardware resources from HPE OneView.Syntax
Description
Remove-OVServer removes the specified server hardware resource from HPE OneView. The server is de-registered from the appliance; the physical hardware is not affected.
Before removing a server, any assigned server profile must be unassigned or deleted. If a profile is still assigned, the operation will fail unless -Force is used.
The cmdlet supports pipeline input, so you can pipe the output of Get-OVServer directly to Remove-OVServer for bulk operations.
Parameters
The server hardware object, URI string, or name to remove. Accepts pipeline input. The
Server alias is also accepted.Force removal even if a server profile is still assigned. The profile assignment will be cleared automatically. Use with caution.
The appliance connection object or name. Defaults to the default connected session. Accepted from the pipeline by property name.
Prompts for confirmation before each removal. The cmdlet has a high
ConfirmImpact, so confirmation is requested by default when $ConfirmPreference is High or lower.Examples
Remove a server by name
Encl1, bay 1 from HPE OneView after confirmation.
Remove a server using the pipeline
Remove-OVServer.
Remove multiple servers without confirmation
Encl1 without prompting for confirmation.
Force-remove a server that still has a profile assigned
Output
HPEOneView.Appliance.TaskResource
Returns an async task resource for each removal operation.