Advanced tip about deleting locked files originally from: http://support.apple.com/kb/HT1526
If there are several locked files in the Trash, you can unlock them all at the same time at the command line. Follow these steps:
Type: chflags -R nouchg
Note: Type one space (not pictured) after nouchg in the line above, so that it ends in "nouchg ". Do not press Return yet.
Note: This automatically enters the pathname for each file. This eliminates the need to individually empty multiple Trash directories, particularly when multiple disks or volumes are present.
If the Trash does not empty or if you see a message in Terminal that says "usage: chflags [-R [-H | -L | -P]] flags file..." you most likely did not type the text in step 2 as indicated or did not leave a space. Repeat the steps if this happens.
4/15/09
delete locked files on Mac
Labels:
Mac
Subscribe to:
Posts (Atom)