Remove-Org
This cmdlet removes the specified organization. The organization must be disabled and must not contain any child objects. To automatically disable the organization before removal, set the Force parameter. Note: This cmdlet is only availabe to Provider Administrators.
Syntax
Parameters
Required | Parameter Name | Type | Position | Features | Description |
---|---|---|---|---|---|
required
|
Org | Org[] | named |
|
Specifies the organization that you want to remove. |
optional | Force | SwitchParameter | named |
|
Indicates that the organization will be removed even if it is activated. Setting the Force parameter will automatically deactivate the organization if it is activated. |
optional | ProgressAction | ActionPreference | named |
|
|
optional | Server | CIServer[] | named |
|
Specifies the cloud servers 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-CIServer. |
Output
Examples
Example 1
Get-Org "MyOrg" | Remove-Org
Removes the MyOrg organization.
Example 2
Get-Org "MyEnabledOrg" | Remove-Org -Force
Removes an enabled organization by automatically disabling it before deletion.
Example 3
Remove-Org -Org "MyOrg*"
Removes all deactivated organizations that have names starting with "MyOrg".
Related Commands
Org
This cmdlet retrieves cloud organizations.
This cmdlet creates a new organization.
This cmdlet removes the specified organization.
This cmdlet modifies the configuration of the specified organization.
OrgVdc
This cmdlet retrieves organization vDCs.
This cmdlet creates an organization virtual datacenter (vDC).
This cmdlet removes organization virtual datacenters (vDCs).
This cmdlet modifies the configuration of the specified organization virtual datacenter (vDC).
OrgVdcNetwork
This cmdlet retrieves organization vDC networks.
This cmdlet creates a new organization VDC network on a vCloud Director server.
This cmdlet deletes the specified organization VDC network.
This cmdlet modifies the configuration of the specified organization network.