# 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](/files/O2mDtznR64yFpHW678oi)

### 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](/files/JMDODPAtbpeH9l4Xe2Xl)


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.overleaf.com/troubleshooting-and-support/clearing-the-project-cache.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
