> ## Documentation Index
> Fetch the complete documentation index at: https://productlasso.com/docs/llms.txt
> Use this file to discover all available pages before exploring further.

# Delete file

> Delete an uploaded file.

## Path parameters

<ParamField path="file_id" type="string" required>
  The unique identifier of the file to delete.
</ParamField>

## Response

Returns `204 No Content` on success. The file is removed from storage and its metadata is deleted.

<Warning>
  If a table was created using this file, the table and its extracted data are not affected. Only the original source file is deleted.
</Warning>

<RequestExample>
  ```typescript TypeScript theme={null}
  await client.files.delete("file_abc123");
  ```

  ```python Python theme={null}
  client.files.delete("file_abc123")
  ```

  ```bash cURL theme={null}
  curl -X DELETE "https://hub.banditshq.com/api/v1/files/file_abc123" \
    -H "Authorization: Bearer lasso_..."
  ```
</RequestExample>
