> For the complete documentation index, see [llms.txt](https://docs.digitalsamba.com/reference/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.digitalsamba.com/reference/sdk/methods/closelibraryfile.md).

# closeLibraryFile()

Closes a concrete library file. If the file is not opened, then nothing will happen.

```javascript
sambaFrame.closeLibraryFile();
```

**Sample use case**: \
You may have buttons in your integration to control file opening and closing.

Used in conjunction with [openLibraryFile()](/reference/sdk/methods/openlibraryfile.md).
