Remove-WMNamespace

This cmdlet deletes a workload namespace from the vCenter Server system. The cmdlet requires a connection to a vCenter Server using the Connect-VIServer cmdlet.

Syntax

-Namespace  <WMNamespace[]>
[-RunAsync]
[-Server  <VIServer[]>]
[CommonParameters]

Parameters

Required Parameter Name Type Position Features Description
required
Namespace
WMNamespace[] named
  • pipeline
  • Specifies the workload namespaces that you want to delete.
    optional
    RunAsync
    SwitchParameter named Indicates that the command returns immediately without waiting for the task to complete. In this mode, the output of the cmdlet is a Task object. For more information about the RunAsync parameter, run "help About_RunAsync" in the VMware PowerCLI console.
    optional
    Server
    VIServer[] named 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 the Connect-VIServer cmdlet.

    Output

    Examples


    Example 1

    PS C:\> Remove-WMNamespace -Namespace "MyNamespace"

    Deletes a workload namespace called "MyNamespace".

    Example 2

    PS C:\> Get-WMNamespace "Target*" | Remove-WMNamespace

    Deletes all workload namespaces that have a name that matches the "Target*" pattern (i.e. begins with "Target").

    Related Commands

    Feedback

    Was this page helpful?