Delete file
Removes individual files. Returns file info.
Note: this operation removes the file from storage but doesn’t invalidate CDN cache.
Authentication
Authorizationstring
Every request made to `https://api.uploadcare.com/` MUST be signed. HTTPS SHOULD be used with any authorization scheme.
Requests MUST contain the `Authorization` header defining `auth-scheme` and `auth-param`: `Authorization: auth-scheme auth-param`.
Every request MUST contain the `Accept` header identifying the REST API version: `Accept: application/vnd.uploadcare-v0.7+json`.
There are two available authorization schemes:
* For production: `Uploadcare`, a scheme where a `signature`, not your Secret API Key MUST be specified. Signatures SHOULD be generated on backend.
* For quick tests: `Uploadcare.Simple`, a simple scheme where your [Secret API Key](https://app.uploadcare.com/projects/-/api-keys/) MUST be specified in every request's `auth-param`.
Path parameters
uuid
File UUID.
Headers
Accept
Version header.
Response
File deleted. File info in JSON.
datetime_removed
Date and time when a file was removed, if any.
datetime_stored
Date and time of the last store request, if any.
datetime_uploaded
Date and time when a file was uploaded.
is_image
Is file is image.
is_ready
Is file is ready to be used after upload.
mime_type
File MIME-type.
original_file_url
Publicly available file CDN URL. Available if a file is not deleted.
original_filename
Original file name taken from uploaded file.
size
File size in bytes.
url
API resource URL for a particular file.
uuid
File UUID.
variations
Dictionary of other files that were created using this file as a source. It’s used for video processing and document conversion jobs. E.g., <conversion_path>: <uuid>.
content_info
Information about file content.
metadata
Arbitrary metadata associated with a file.
appdata
Dictionary of application names and data associated with these applications.
Errors
400
Bad Request Error
401
Unauthorized Error
404
Not Found Error
406
Not Acceptable Error
429
Too Many Requests Error