# Remove a file from an invoice

`DELETE /v1/invoices/{id}/files/{file_id}`

Removes a file from a draft invoice or offer. A booked invoice's files can't be removed, because they're what the customer received.

**Scopes:** any of `invoices:write`, `write:draft`, `write:ledger`

## Request

```bash
curl -X DELETE https://api.numina.app/v1/invoices/550e8400-e29b-41d4-a716-446655440000/files/550e8400-e29b-41d4-a716-446655440000 \
  -H "Authorization: Bearer numi_YOUR_API_KEY"
```

## Path parameters

- `id` (string (uuid), required): Invoice ID
- `file_id` (string (uuid), required): `id` from `GET /v1/invoices/{id}/files`

## Response `204`

Removed

```json
undefined
```

## Errors

- `401` Unauthorized - Missing or invalid credentials
- `403` Forbidden - A scope is missing, or the company is archived
- `404` Not Found - It doesn't exist in this company
- `409` Conflict - The invoice is not a draft
- `429` Too Many Requests - You're over the rate limit
- `500` Internal Server Error - Something went wrong on our side

See https://developers.numina.app/errors.md for the error format.
