# Clearing the project cache

When you compile your project, LaTeX generates numerous auxiliary files which are stored user-by-user in a "cache" as opposed to with the project. Those generated files typically include `.aux`, `.log` and `.toc` files, which are used for cross referencing, generating bibliographies, and making tables of contents. LaTeX's generated (auxiliary) files are not listed, i.e., visible, within your project but remain "behind the scenes" within the cache, to be regenerated as required the next time you recompile the document.

If you find that one of your collaborators is able to compile your project without errors, but you experience errors when compiling on your computer, recompiling from scratch (also known as clearing the cache) may help. Additionally, you may want to recompile from scratch if you encounter error messages related to the generated files, or if you simply want to delete the generated files for some other reason.

### Recompile from scratch

The Recompile from scratch menu action deletes the generated files and immediately recompiles your project. This button is found by opening the **Recompile** menu and clicking **Recompile from scratch**.

![Screenshot of the Recompile menu](https://3502988919-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FVetOkhFZmAC8QCQK0Pi7%2Fuploads%2FUT2mGF4f7ru8qZQ1hHAD%2FScreenshot%202025-12-16%20125728.png?alt=media\&token=afb2f4fe-53dd-43c1-bdbe-9d8df7ad5802)

### Clear cached files

The Clear cached files button deletes the generated files, but does not immediately recompile your project. This button is found by first clicking the **Logs and output files** button, and then clicking the red **Clear cached files** button at the bottom.

![Screenshot of the Clear cached files button](https://3502988919-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FVetOkhFZmAC8QCQK0Pi7%2Fuploads%2Fduw2Y0Ga7Kb1NGpL5zZv%2FScreenshot%20of%20clear%20cache.png?alt=media\&token=5d5964ef-02f8-409d-9e85-f951228e1607)
