Deletes the zone with the specified identifier. In order to delete a zone, there must not be any workload running in that zone because deleting the zone without removing all the dependencies on that zone can cause undefined behavior for the entities depending on this zone to be present. if you do not have all of the privileges described as follows: - Operation execution requires Zone.Manage.
Identifier of the zone to be deleted. The parameter must be an identifier for the resource type: com.vmware.vcenter.consumption_domains.Zone.
Required session ID, acquired from Create Session API under CIS product
com.vmware.vapi.std.errors.not_allowed_in_current_state : if there is a workload running in the specified zone and depends on this zone to be present.
com.vmware.vapi.std.errors.unauthenticated : if the user can not be authenticated.
com.vmware.vapi.std.errors.unauthorized : if the user doesn’t have all of the privileges described as follows: - The resource com.vmware.vcenter.consumption_domains.Zone referenced by the parameter zone requires Zones.Manage privilege.
com.vmware.vapi.std.errors.not_found : if no zone with the specified identifier is found in this vCenter server.
com.vmware.vapi.std.errors.error : when unexpected error is encountered.
‘Default’ means this response is used for all HTTP codes that are not covered individually for this operation.
PowerCLI Client SDK Example