delete_user

Description

Delete an existing user.

Parameters 

 username

Request

curl -X POST \
-H "Authorization: Token d37fa8c4e008fec158070b1b4aea5f0db3d6a06e" \
-H "Content-Type: application/json" \
-d '{"username":"testuser"}' \
-k https://your.domain.com/api/users/delete_user

Responses

{"status": "success"}

{"status": "failed", "msg": "User matching query does not exist."}