---
title: "Delete a stored file"
method: DELETE
path: "/v1/projects/{project_id}/files/{id}"
tags: ["StoredFile"]
---

# Delete a stored file

`DELETE /v1/projects/{project_id}/files/{id}`

## Request

- Base URL: `https://api.telerivet.com`
- URL: `https://api.telerivet.com/v1/projects/{project_id}/files/{id}`
- Auth: one of:
  - HTTP basic
  - OAuth 2 (authorization code, authorization URL `https://telerivet.com/oauth/authorize`, token URL `https://api.telerivet.com/oauth/token`)

Deletes this stored file.

 A stored file may only be deleted by the user who created it or by a project administrator, and may not be deleted while it is attached to an existing message.

## Path parameters

- `project_id` string, required
- `id` string, required

## Response `200`

Successful response

## Other responses

- `400`: Invalid request parameters
- `401`: Invalid or missing API key or Bearer token
- `404`: Resource not found

---

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