> ## Documentation Index
> Fetch the complete documentation index at: https://wb-21fd5541-sdk-add-methods-properties.mintlify.site/llms.txt
> Use this file to discover all available pages before exploring further.

# File methods

## <Badge color="yellow" size="lg" shape="rounded">Class</Badge> wandb.apis.public.File

## <Badge color="blue" size="lg" shape="rounded">method</Badge> File.delete()

Delete the file from the W\&B server.

```python theme={null}
self
```

## <Badge color="blue" size="lg" shape="rounded">method</Badge> File.download()

Downloads a file previously saved by a run from the wandb server.

```python theme={null}
self,
root: 'str' = '.',
replace: 'bool' = False,
exist_ok: 'bool' = False,
api: 'Api | None' = None
```

##### Arguments

<ResponseField name="root" type="str">
  Local directory to save the file. Defaults to the current working directory (".").
</ResponseField>

<ResponseField name="replace" type="bool">
  If `True`, download will overwrite a local file if it exists. Defaults to `False`.
</ResponseField>

<ResponseField name="exist_ok" type="bool">
  If `True`, will not raise ValueError if file already exists and will not re-download unless replace=True. Defaults to `False`.
</ResponseField>

<ResponseField name="api" type="Api | None">
  If specified, the `Api` instance used to download the file.
</ResponseField>
