Delete VCD User
To delete a VMware Cloud Director user account from the cloud, use the following request:
1
2
| DELETE /users/:id.xml
DELETE /users/:id.json
|
XML Request Example
1
| 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
1
| 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 the HTTP 204 response on the successful deletion or HTTP 404 when a user with the specified ID is not found.