---
title: "Delete a file from its hash"
method: DELETE
path: "/version_file/{hash}"
tags: ["version-files"]
---

# Delete a file from its hash

`DELETE /version_file/{hash}`

## Query parameters

- `version_id` string

## Response `204`

Expected response to a valid request

## Other responses

- `401` — Incorrect token scopes or no authorization to access the requested item(s)
- `404` — The requested item(s) were not found or no authorization to access the requested item(s)

---

[API](https://skmtc.net/modrinth/apis/labrinth.md) · [All operations](https://skmtc.net/modrinth/apis/labrinth/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/modrinth/labrinth/revisions/16bb5dbc54f4/schema)
