rharder
Do not read this sign.
An earlier thread hilited the "chflags" command that could unlock those pesky locked files that cannot be deleted. You can make a little program that will unlock the trashed files.
You'll need to make a shell script, so open up Terminal and make a file called something like <em>DeleteLockedFiles.command</em>. Be sure to end the filename with ".command" and have no spaces in the name. Make your file look like this:
You'll then need to make sure the file can be executed so enter the following from the command prompt:
Now you can double-click the file in the Finder and delete whatever locked files are available to you in those two directories.
Enjoy, and thanks to all those who contributed the tips that made up this file.
-Rob
You'll need to make a shell script, so open up Terminal and make a file called something like <em>DeleteLockedFiles.command</em>. Be sure to end the filename with ".command" and have no spaces in the name. Make your file look like this:
Code:
#!/bin/sh
chflags -R nouchg ~/.Trash/*
chflags -R nouchg /Trash
rm -Rf ~/.Trash/*
rm -Rf /Trash/*
You'll then need to make sure the file can be executed so enter the following from the command prompt:
Code:
chmod +x <em>filename</em>
Now you can double-click the file in the Finder and delete whatever locked files are available to you in those two directories.
Enjoy, and thanks to all those who contributed the tips that made up this file.
-Rob