Delete User By Email
This endpoint allows you to delete a user from the system by their registered email address.
Authorized Roles : SYSTEM_ADMIN or INFRA_ADMIN or DSM_ADMIN
Request
URI
DELETE
https://{api_host}/provider/users
COPY
Query Parameters
string
email
Required
The email address of the user to be deleted. The email must be registered in the system.
Responses
204
User successfully deleted. No content will be returned.
Operation doesn't return any data structure
400
Bad request. The email address is invalid or missing.
Returns
ErrorDto
of type(s)
application/vnd.vmware.dms-v1+json
{
"message": "string",
"errorCodes": {
"type": "string"
}
}
string
message
Optional
message
object
errorCodes
Optional
errorCodes
404
User not found with the given email address.
Returns
ErrorDto
of type(s)
application/vnd.vmware.dms-v1+json
"ErrorDto Object"
string
message
Optional
message
object
errorCodes
Optional
errorCodes
412
There are workloads or roles associated with this user. Deletion is not possible.
Returns
ErrorDto
of type(s)
application/vnd.vmware.dms-v1+json
"ErrorDto Object"
string
message
Optional
message
object
errorCodes
Optional
errorCodes
Code Samples
COPY
curl -X DELETE -H 'Authorization: <value>' https://{api_host}/provider/users?email=v