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 → Delete
AI-generatedSummary
Delete a file from ImageKit by specifying its unique file ID.
Inputs
- File ID (required) — The unique ID of the file to delete
Output shape
a single JSON object indicating success and echoing the deleted file ID
The output JSON contains a 'success' boolean set to true and the 'fileId' of the deleted file.
Examples
Example 1: Delete a file by its ID
Set the resource to 'File', the operation to 'Delete', and provide the 'File ID' of the target file.