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

# reloadFile

> Reload the currently opened NOTE/DOC file.

```ts theme={null}
static reloadFile(): Promise<APIResponse<boolean>>;
```

**Returns**

* [`APIResponse<boolean>`](/en/api-reference/supernote-plugin/types/api-response):
  `result === true` indicates reload succeeded

## Example

```ts wrap theme={null}
import { PluginCommAPI } from 'sn-plugin-lib';

/**
 * Example: reload current file.
 */
export async function exampleReloadFile() {
 const res = await PluginCommAPI.reloadFile();
 if (!res.success) {
 throw new Error(res.error?.message ?? 'reloadFile call failed');
 }
 return res.result;
}
```
