curl -X DELETE "https://api.scanova.io/media/4821/" \
-H "Authorization: 401f7ac837da42b97f613d789819ff93537bee6a"
Media Library
Delete a file
DELETE /media//
DELETE
/
media
/
{pk}
/
curl -X DELETE "https://api.scanova.io/media/4821/" \
-H "Authorization: 401f7ac837da42b97f613d789819ff93537bee6a"
Deletes one file, on the Management API host (
A successful call returns
api.scanova.io), authenticated with your raw Management API key.
DELETE https://api.scanova.io/media/{pk}/
Authorization: 401f7ac837da42b97f613d789819ff93537bee6a
integer
required
The file’s
id.curl -X DELETE "https://api.scanova.io/media/4821/" \
-H "Authorization: 401f7ac837da42b97f613d789819ff93537bee6a"
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.
- Management 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: 401f7ac837da42b97f613d789819ff93537bee6a. 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?