Remove-VMHostProfile

This cmdlet removes the specified host profiles. If the Entity parameter is provided, the cmdlet removes the profile association for the specified entity. Otherwise, the cmdlet removes the profile object.

Syntax

-Entity  <InventoryItem[]>
[-Server  <VIServer[]>]
[CommonParameters]

Parameters

Required Parameter Name Type Position Features Description
required
Entity
InventoryItem[] named
  • wildcards
  • pipeline
  • Specifies the host or cluster whose host profile association you want to remove.
    optional
    Server
    VIServer[] named
  • wildcards
  • Specifies the vCenter Server systems on which you want to run the cmdlet. If no value is provided or $null value is passed to this parameter, the command runs on the default servers. For more information about default servers, see the description of Connect-VIServer.

    -Profile  <VMHostProfile[]>
    [[-Server]  <VIServer[]>]
    [CommonParameters]

    Parameters

    Required Parameter Name Type Position Features Description
    required
    Profile
    VMHostProfile[] named
  • wildcards
  • pipeline
  • Specifies the host profiles you want to remove.
    optional
    Server
    VIServer[] 1
  • wildcards
  • Specifies the vCenter Server systems on which you want to run the cmdlet. If no value is provided or $null value is passed to this parameter, the command runs on the default servers. For more information about default servers, see the description of Connect-VIServer.

    Output

    Examples


    Example 1

    Get-VMHostProfile -Name Profile | Remove-VMHostProfile -Confirm:$false

    Deletes the Profile host profile.

    Related Commands

    Feedback

    Was this page helpful?