---
title: "Delete multiple files"
method: POST
path: "/v1/files/batch/deleteByFileIds"
tags: ["Digital Asset Management (DAM)", "Managing assets"]
---

# Delete multiple files

`POST /v1/files/batch/deleteByFileIds`

This API deletes multiple files and all their file versions permanently.

Note: If a file or specific transformation has been requested in the past, then the response is cached. Deleting a file does not purge the cache. You can purge the cache using purge cache API.

A maximum of 100 files can be deleted at a time.

## Request body

- object
  - `fileIds` string[], required — An array of fileIds which you want to delete.

## Response `200`

Files deleted successfully.

- object
  - `successfullyDeletedFileIds` string[] — An array of fileIds that were successfully deleted.

## Other responses

- `207` — Partially successful. Some files were not deleted.
- `400` — Bad request.
- `401` — Unauthorized request.
- `403` — Forbidden.
- `404` — File not found.
- `429` — The request exceeded the rate limit. Contains headers indicating the limits and a message detailing the error.

---

[API](https://skmtc.dev/imagekit-developer/apis/imagekit-api.md) · [All operations](https://skmtc.dev/imagekit-developer/apis/imagekit-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/imagekit-developer/imagekit-api/revisions/bb3e9ff84b3e/schema)
