in reply to How to delete non-empty directory

If you're really, really sure of the name of your temporary folder, you could use the system1 command:

`rm -fr $temporary_folder`;

I would be more than slightly paranoid about this, making sure that $temporary_folder didn't have a value such as '~' or '/' or anything that would confuse the shell.


Notes

1 using "system" to include backticks, qx//, etc.

emc

Insisting on perfect safety is for people who don't have the balls to live in the real world.

—Mary Shafer, NASA Dryden Flight Research Center