How do I delete a directory that appears to contain nameless files?

Giving the -f flag to rm means it won't complain when it can't do something, perhaps something such as trying to remove a file owned by another user (e.g. root) or you don't have write permissions to the directory. sudo rm -rf /path/to/thedirectory will no doubt nuke the directory and the files therein. ls -B thedirectory | cat -ve may also be illuminating.


Have you tried deleting the inode directly?

$ ls -iN | cat -A
794539 $
$ find . -inum 794539 -exec rm -i {} \;