Delete file version
delete
https://api.imagekit.io
/v1/files/:fileId/versions/:versionId
Delete file version API
In case of an error, you will get an error code along with the error message. On success, you will receive a
200
status code with the file details in JSON-encoded response body.Here is the example request to understand the API usage.
cURL
Node.js
Python
PHP
Java
Ruby
Go
.Net
# The unique fileId and versionId of the uploaded file. fileId and versionId (versionInfo.id) is returned in response of list files API and upload API.
curl -X DELETE "https://api.imagekit.io/v1/files/file_id/versions/version_id" \
-u your_private_api_key:
var ImageKit = require("imagekit");