Delete an uploaded image
curl --request DELETE \
--url https://api.presenton.ai/api/v3/images/{id} \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.presenton.ai/api/v3/images/{id}"
headers = {"Authorization": "Bearer <token>"}
response = requests.delete(url, headers=headers)
print(response.text)const options = {method: 'DELETE', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.presenton.ai/api/v3/images/{id}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"detail": [
{
"loc": [
"<string>"
],
"msg": "<string>",
"type": "<string>",
"input": "<unknown>",
"ctx": {}
}
]
}Files and Images
Delete image (Cloud)
Delete one uploaded image owned by the authenticated Cloud account.
DELETE
/
api
/
v3
/
images
/
{id}
Delete an uploaded image
curl --request DELETE \
--url https://api.presenton.ai/api/v3/images/{id} \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.presenton.ai/api/v3/images/{id}"
headers = {"Authorization": "Bearer <token>"}
response = requests.delete(url, headers=headers)
print(response.text)const options = {method: 'DELETE', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.presenton.ai/api/v3/images/{id}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"detail": [
{
"loc": [
"<string>"
],
"msg": "<string>",
"type": "<string>",
"input": "<unknown>",
"ctx": {}
}
]
}Was this page helpful?