# Delete a file

### Delete a file

`DELETE /api/v1/files`

Operation ID: `deleteFile`

Deletes a private file stored with POST /api/v1/files. Pass the url returned by that call or by GET /api/v1/files. Messages and campaign steps that still reference it will fail when sending.

**Request body** (required)

- `url` (string · uri, required)

**200**: File deleted.

- `deleted` (boolean, required)
- `requestId` (string · uuid, required): Id of this request, for support and troubleshooting

**Errors**

- `400`: Bad request
- `401`: Unauthorized: missing or invalid API key
- `403`: Forbidden
- `404`: Not found
- `422`: Invalid request payload
