Actions47
- Account Actions
- Account Origin Actions
- Account URL Endpoint Actions
- Asset Actions
- Custom Metadata Field Actions
- File Actions
- File Version Actions
- Folder Actions
- Metadata Actions
- Purge Cache Actions
- Saved Extension Actions
File Version → Delete
AI-generatedSummary
Delete a specific version of a file from ImageKit by providing the file's unique ID and the version ID to delete.
Inputs
- File ID (required) — The unique ID of the file to delete a version from.
- Version ID (required) — The version ID of the file version to delete.
Output shape
a single JSON object indicating success and including the file ID and version ID deleted
Returns { success: true, fileId, versionId } if the deletion is successful; errors are thrown otherwise.