Can delete a sequence of files of directories in the command line, no recursion yet. Assumes remove(3) is fast and reasonable: unlink(); if (errno==EISDIR) rmdir();