---
title: "Delete a secure file"
method: DELETE
path: "/api/v4/projects/{id}/secure_files/{secure_file_id}"
tags: ["secure_files"]
---

# Delete a secure file

`DELETE /api/v4/projects/{id}/secure_files/{secure_file_id}`

## Request

- Base URL: `https://gitlab.com`
- URL: `https://gitlab.com/api/v4/projects/{id}/secure_files/{secure_file_id}`
- Auth: none declared

Deletes a specified secure file from a project.

## Path parameters

- `id` string, required
- `secure_file_id` integer, required

## Response `204`

Resource deleted

## Other responses

- `404`: 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)
