Can I delete the Library folder in U5? - Also, deleted folders returning...

I’ve been working in Unity 4.x Pro and recently brought my game into Unity 5. There have been several strange issues, some I was able to resolve and some recurring.

One issue is that sometimes if I delete a folder from the Assets directory (in the Project pane), the folder will reappear when I refresh assets. Not always, but often enough that it’s a bother.

I read somewhere online that a possible solution to this is to delete the Library folder. This is something I did a couple of times in Unity 4 when problems arose, so I know it can help. I also read somewhere, however, that Unity 5 doesn’t treat the Library folder in the same way, and NOT to delete it or major problems will happen.

So… will deleting the Library folder and letting it rebuild possibly fix the “deleted folders returning” problem, AND is it ok to delete the Library folder in Unity 5?

Thanks!

Have a read through this page from the documentation

I would not delete the Library folder personally, but move them to another location as backup. Only once you’re sure you will not need it anymore should you permanently delete it

In regards to the deleted folders returning - are you using dropbox by any chance?

1 Like

Thank you. Yeah I usually move the Library folder to a different location when I do it in U4. It’s just that I’ve read about the Library rebuilding not working in U5. I’ve run into a few U5 bugs so far and I just wanted to make sure before I did the delete. Might as well try and give it a shot to find out.

I’m not using Dropbox on this project, no. No version control or anything on it yet as I just recently moved it into U5 and wanted to make sure I could get it all working before getting the version control and all that set up.

I just did an experiment with a small test project. Deleting the library folder destroyed all of my scene heirarchy, so I would say that it is NOT safe to delete the Library folder.