Is it safe to erase ~Library/Developer

deletingxcode

In the user Library, there is a Developer folder with about 3.2 GB of space (2.8GB from DocSets and the rest mainly from Xcode/iOS DeviceSupport). I had Xcode installed, I presume these are from that? I no longer use Xcode, is there any downside to erasing these folders? If I install Xcode again wouldn't it restore what is needed?

Best Answer

If the only two directories you have in ~Library/Developer are Xcode and Docsets (or Shared/Docsets) then you should be safe to delete that folder. If you did re-install XCode you would get them (or updated versions) back.