Take the 2-minute tour ×

Unity creates a bunch of junk binary files. From what I understand a lot of those files are temporary and are unnecessary. Is there a batch script already written which can delete these files? If not, which files are safe to delete and which files are critical to the integrity of the scene files?

share|improve this question
Not really a Perforce question. –  Dennis Apr 16 '12 at 19:49
We are using perforce that's why its under that category. –  Serguei Fedorov Apr 17 '12 at 19:46
Well yes I assumed that you are using Perforce, however as your question asked nothing specific to do with I removed the tag/category so that you will most likely get a better answer (e.g. what files in a Unity compile are temporary?). –  Dennis Apr 17 '12 at 19:50
The unity tag is for Microsoft Unity. Please don't misuse it. –  Lex Li Apr 23 '12 at 5:56

2 Answers 2

You can ignore these file extensions for unity


and anything under


just make sure they dont conflict with non unity projects ;)

Keep your meta files if your using it for Version control.

Instead of making a batch file to delete them if you just dont want other Perforce users in your group to get them simply add these sorts of lines to your workspace (swapping out the paths and CLIENT for the right one)

-//depot/foo/*.csproj //CLIENT/foo/*.csproj
-//depot/foo/.../*.pidb //CLIENT/foo/.../*.pidb
share|improve this answer

If you want to clean up files by file extension (say all .tmp files in a directory strucutre) you can achieve this with find on osx and linux.



If you know the extensions (or names) of the files that are temporarly generated you can remove them in this way.

share|improve this answer

Your Answer


