Delete VCD User

To delete a VMware Cloud Director user account from the cloud, use the following request:

DELETE /users/:id.xml
DELETE /users/:id.json

XML Request Example

curl -i -X DELETE -u user:userpass -H 'Accept: application/xml' -H 'Content-type: application/xml' -d '<take_ownership>true</take_ownership>' --url 'http://onapp.test/users/21.xml'

JSON Request Example

curl -i -X DELETE -u user:userpass -H 'Accept: application/json' -H 'Content-type: application/json'-d '{"take_ownership":"true"}' --url 'http://onapp.test/users/21.json'

Where: 

take_ownership - true, if you want to transfer all resources associated with the user to your account, otherwise, false


Returns HTTP 204 response on the successful deletion or HTTP 404 when a user with the specified ID is not found.