Skip to content

Delete user

DELETE
/api/v1/users/{email}

Roles required: Admin

Delete a user by providing the user's email.

Parameters

Path Parameters

email*

Email

Typestring
Required
Exampleuser@example.com

Responses

OK

Samples

cURL
curl -X DELETE https://openfish.appspot.com/api/v1/users/{email}
JavaScript
fetch("https://openfish.appspot.com/api/v1/users/{email}", { method: "DELETE" })
  .then(response => response.json())
  .then(data => console.log(data));
PHP
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, "https://openfish.appspot.com/api/v1/users/{email}");
curl_setopt($ch, CURLOPT_CUSTOMREQUEST, "DELETE");
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
$response = curl_exec($ch);
curl_close($ch);
echo $response;
Python
import requests
response = requests.delete("https://openfish.appspot.com/api/v1/users/{email}")
print(response.json())