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

# files_delete

> Permanently delete a file owned by the user without moving it to the trash. If the target is a folder, descendants owned by the user are also deleted. To move a file to the trash instead, use files_update with trashed=true.

<div className="tool-route"><span className="tool-row-method" data-method="DELETE">DELETE</span><code>{"https://www.googleapis.com/drive/v3/files/{fileId}"}</code></div>

```python gdrive_files_delete.py theme={null}
from charter.packs import gdrive

result = await gdrive.files_delete.ainvoke({"fileId": ...})
```

<Note>
  Requires `https://www.googleapis.com/auth/drive`. Costs 1 against the provider's own quota.
</Note>

## Path parameters

<div className="reference-table">
  | Field                                                          | Type     | Description         |
  | -------------------------------------------------------------- | -------- | ------------------- |
  | `fileId` <span className="required" title="required">\*</span> | `string` | The ID of the file. |
</div>

## Query parameters

<div className="reference-table">
  | Field               | Type      | Description                                                                   |
  | ------------------- | --------- | ----------------------------------------------------------------------------- |
  | `supportsAllDrives` | `boolean` | Whether the requesting application supports both My Drives and shared drives. |
</div>
