ImageKit icon

ImageKit

Interact with the ImageKit API

File Version → Delete

AI-generated

Summary

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.

Links

Discussion