• Home  / 
  • Unity3D
  •  /  Removing Empty Unity Folders & Meta Files

Removing Empty Unity Folders & Meta Files

Ever delete directories in Unity only to find out the .meta files and directories still exist?

Do you look in source control and see dozens of meta files for folders you thought were gone?

This happened to me more than once, so I built a quick tool to delete ’empty’ folders that were still lingering due to a .meta file.

Left with this situation, I had two options:

  1. Of course I could just look at the list of files and folders.. go in and delete them..
  2. I could write an editor script to do it for me..

Option #2 seemed more fun (even if not worth the time).. so here it is:

Code