---
title: "Delete file version"
method: DELETE
path: "/v1/files/{fileId}/versions/{versionId}"
tags: ["Digital Asset Management (DAM)", "Managing assets"]
---

# Delete file version

`DELETE /v1/files/{fileId}/versions/{versionId}`

This API deletes a non-current file version permanently. The API returns an empty response.

Note: If you want to delete all versions of a file, use the delete file API.

## Path parameters

- `fileId` string, required
- `versionId` string, required

## Response `204`

File version deleted successfully.

- object

## Other responses

- `400` — Trying to delete the current version of the file.
- `401` — Unauthorized request.
- `403` — Forbidden.
- `404` — File version 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)
