vcenter datacenter: delete

Delete an empty datacenter from the vCenter Server

Request:

HTTP request

DELETE https://{server}/rest/vcenter/datacenter/{datacenter}

?force=true

Path Parameters

Name Type Description
Required
datacenter string Identifier of the datacenter to be deleted.

Request Query Parameters:

Name Type Description
bold = required
force boolean Optional. If true, delete the datacenter even if it is not empty.

Response:

HTTP Status Code: 200

None

Errors:

HTTP Status Code Type Description
500 error if the system reports an error while responding to the request.
404 not_found if there is no datacenter associated with datacenter in the system.
400 resource_in_use if the datacenter associated with datacenter is not empty.
503 service_unavailable if the system is unable to communicate with a service to complete the request.
401 unauthenticated if the user can not be authenticated.
403 unauthorized if the user doesn't have the required privileges.