> For the complete documentation index, see [llms.txt](https://blackdawn.gitbook.io/easy-gitignore-and-lfs-setup/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://blackdawn.gitbook.io/easy-gitignore-and-lfs-setup/utilities-tab/clean-cached-project-files.md).

# Clean Cached Project Files

This is the tool's panic button, designed to rescue your project from a common, critical mistake.

Use this tool if you accidentally committed your Library, Logs, or other cache folders before you created a .gitignore. This mistake can make your repository extremely large and cause major problems for your team.

This tool tells Git to "un-track" all default Unity folders by running the following specific commands:

* `git rm -r --cached Library/`
* `git rm -r --cached Temp/`
* `git rm -r --cached Obj/`
* `git rm -r --cached Builds/`
* `git rm -r --cached Build/`
* `git rm -r --cached Logs/`
* `git rm -r --cached UserSettings/`

How to use this feature:

1. Click the red "Clean Cached Project Files" button.
2. Read the safety warning and confirm the operation.
3. After the tool runs, you must open your Git client (like GitHub Desktop or SourceTree).
4. You will see a very long list of files marked as "Deleted" or "Removed". This is normal. It means Git has successfully untracked them.

You must create a new commit containing all these "deletions." This final step saves the changes and cleans your repository.
