If you have to delete a folder which contains locked files, the Mac OS X Finder won’t let you (because the “locked” flag is used precisely for that!). If you want to remove such folder (typically folders coming from a Subversion checkout have this problem) run these commands:
sudo chflags -R nouchg to_destroy/
sudo rm -r to_destroy/
Where “to_destroy” is the name of the folder that you want to get rid of. As always, be careful! There is no confirmation dialog whatsoever! You’ve been warned.
Similar Posts:

Commenting