Using unlink may do what you want...and more in terms of unexpected side effects later on that could have dire consequences.
For that reason on most Unix systems the use of unlink (and unlink()) requires root access and the use of rmdir (and rmdir()) is strongly encouraged because it permits only the unlinking of empty directories. One of the dangers of unlink used on directories is that there may be running processes that have open files in an unlinked directory. Normally the processes will keep these files open and that might|should block the unlink call -- but the behavior is not specified or standardized. Unlink can be quite useful for removing certain files (because it has no command line options, unlink can remove files beginning with "-"). But unlinking some directories that are not empty, even trivial directories in the root filesystem for example, could cause a system crash, while doing this in any filesystem will require doing a clean-up file system check and repair (fsck) and could confuse troubleshooting another problem such as disk errors. -tristram -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]