---
title: "Delete an uploaded file by ID"
method: DELETE
path: "/api/v4/groups/{id}/uploads/{upload_id}"
tags: ["groups"]
---

# Delete an uploaded file by ID

`DELETE /api/v4/groups/{id}/uploads/{upload_id}`

## Request

- Base URL: `https://gitlab.com`
- URL: `https://gitlab.com/api/v4/groups/{id}/uploads/{upload_id}`
- Auth: none declared

Deletes an uploaded file with a specified ID. You must have the Maintainer or Owner role for the group.

## Path parameters

- `id` string, required
- `upload_id` integer, required

## Response `204`

Delete an uploaded file by ID

## Other responses

- `400`: Bad request
- `403`: Unauthenticated
- `404`: Not found

---

[API](https://skmtc.dev/gitlab/apis/gitlab-api.md) - [All operations](https://skmtc.dev/gitlab/apis/gitlab-api/llms.txt) - [OpenAPI document](https://skmtc.dev/gitlab/apis/gitlab-api/revisions/b234947ef3f2?raw)
