Skip to content

Delete media

DELETE
/api/v1/media/{id}

Roles required: Admin

Delete an image or video, by providing a media id.

Parameters

Path Parameters

id*

Media ID

Typeinteger
Required
Example1234567890

Responses

OK

Samples

cURL
curl -X DELETE https://openfish.appspot.com/api/v1/media/{id}
JavaScript
fetch("https://openfish.appspot.com/api/v1/media/{id}", { 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/media/{id}");
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/media/{id}")
print(response.json())