curl -X DELETE "https://api.scanova.io/media/4821/" \
-H "Authorization: YOUR_API_KEY"
Media Library
Delete a file
DELETE /media//
DELETE
/
media
/
{pk}
/
curl -X DELETE "https://api.scanova.io/media/4821/" \
-H "Authorization: YOUR_API_KEY"
Deletes one file, on
A successful call returns
api.scanova.io, authenticated with your raw API key.
DELETE https://api.scanova.io/media/{pk}/
Authorization: YOUR_API_KEY
integer
required
The file’s
id.curl -X DELETE "https://api.scanova.io/media/4821/" \
-H "Authorization: YOUR_API_KEY"
204 No Content. 404 if pk isn’t a file owned by this account.
To delete several files by their storage path in one call, use Bulk-delete files by path instead.
Related
- Retrieve a file — check before deleting.
- List uploaded files — see what else is uploaded.
- API overview — the auth scheme and quota rules that apply to this endpoint.
Authorizations
Send your Management API key as the raw value of the Authorization header — no "Bearer " or "Token " prefix, and no other characters. Example: Authorization: YOUR_API_KEY. A header containing more than one space-separated part is rejected outright. Requests also require the request's Host header to be the management API host (e.g. api.scanova.io) — the same key sent to the regular API host will not authenticate.
Path Parameters
Response
File deleted.
Was this page helpful?