Delete User
To remove a 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 http://onapp.test/users/12.xml -H 'Accept: application/xml' -H 'Content-type: application/xml'
JSON Request Example
curl -i -X DELETE -u user:userpass http://onapp.test/users/12.json -H 'Accept: application/json' -H 'Content-type: application/json'
Returns HTTP 204 response on successful deletion, or HTTP 404 when a user with the ID specified is not found.
When you delete a user their status becomes DELETED and their backups, virtual servers, load balancers and CDN resources will be marked as removed. To completely remove a user and their billing statistics from the system, run DELETE /users/:id again.
To delete a user along with their backups, load balancers and CDN resources with a single API call, run:
XML Request Example
curl -i -X DELETE -u user:userpass -H 'Accept: application/xml' -H 'Content-type: application/xml' -d ' <force>1</force>' --url http://onapp.test/users/12.xml
JSON Request Example
curl -i -X DELETE -u user:userpass -H 'Accept: application/json' -H 'Content-type: application/json' -d '{"force":"1"}' --url http://onapp.test/users/12.json