Do you need space on your drives? Do you have a lot of Unity projects on your computer? Did you notice that Library folders are often over 1 Gb each?
As a teacher, my disk fills up quite fast when I open all my students’ projects. At the end of the semester, I need a real clean up! That’s why I created Unity Libraries Cleaner, a batch script that can easily delete the contents of Library folders, without erasing precious projects! (Don’t worry, when you open a project, Unity can always rebuild the content of the Library folder.)
‘et’ is not recognized as an internal or external command,
operable program or batch file.
‘et’ is not recognized as an internal or external command,
operable program or batch file.
‘em’ is not recognized as an internal or external command,
operable program or batch file.
‘em’ is not recognized as an internal or external command,
operable program or batch file.
‘or’ is not recognized as an internal or external command,
operable program or batch file.
‘em’ is not recognized as an internal or external command,
operable program or batch file.
‘hcp’ is not recognized as an internal or external command,
operable program or batch file.
‘em’ is not recognized as an internal or external command,
operable program or batch file.
Version 1.0.2 of the script is available. It now detects folder path length to avoid execution issues.
If you encounter any errors or have any questions, please let me know!
Version 1.0.3 of the script is available.
It now detects the cumulative total of all paths to avoid problems associated with exceeding the 8192-character limit for variables in a .BAT script. This makes it possible to clean up disks containing more Unity projects, without crashing.
Also, the interface now indicates a counter during folder discovery and deletion.
Finally, folders containing exclamation marks should no longer cause crashes, but they are not processed either (in any case, I recommend all developers to avoid exclamation marks in paths!)
If you discover any problems, please let me know!