Skip to main content

Delete a user

Admin-only.

Request​

Method: DELETE
Path: /api/users/{email}

Authentication: Not required

Parameters​

NameTypeInRequiredDescription
emailstringpathYes

Responses​

200 - User deleted​

403 - Requires admin role​

Examples​

cURL​

curl -X DELETE \
-H "Content-Type: application/json" \
http://localhost:3000/api/users/{email}

JavaScript​

const response = await fetch('http://localhost:3000/api/users/{email}', {
method: 'DELETE',
headers: {
'Content-Type': 'application/json',
},
});

const data = await response.json();
console.log(data);

This documentation is automatically generated from the OpenAPI specification.