DELETE
/user
curl \
-X DELETE http://localhost:5000/user \
--cookie "fastapiusersauth=$API_KEY" \
-H "Content-Type: application/json" \
-d '{"email":"string"}'
Request example
{
"email": "string"
}
Response examples (200)
{
"detail": "User removed"
}
Response examples (400)
{
"detail": "Cannot find user"
}
Response examples (401)
{
"detail": "Unauthorized"
}
Response examples (422)
{
"detail": [
{
"loc": [
"string"
],
"msg": "string",
"type": "string"
}
]
}