---
title: "Delete an uploaded file by secret and filename"
method: DELETE
path: "/api/v4/projects/{id}/uploads/{secret}/{filename}"
tags: ["projects"]
---

# Delete an uploaded file by secret and filename

`DELETE /api/v4/projects/{id}/uploads/{secret}/{filename}`

## Request

- Base URL: `https://gitlab.com`
- URL: `https://gitlab.com/api/v4/projects/{id}/uploads/{secret}/{filename}`
- Auth: none declared

Deletes an uploaded file with a specified secret and filename. You must have the Maintainer or Owner role for the project.

## Path parameters

- `id` string, required
- `secret` string, required
- `filename` string, required

## Response `204`

Delete an uploaded file by secret and filename

## 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)
