removing a dir named: $HOME

How do I remove a directory named: $HOME

$ rm "$HOME"
rm: $HOME is a directory

$ rmdir "$HOME"
rmdir: directory "/home/bob": Directory is a mount point or in use

If I'm correct you want to remove a directory named literally as $HOME

rm '$HOME'

if the directory is having some content you don't want to keep...

rm -rf '$HOME'

This better NOT be a homework question, but I will answer anyway.

$HOME is a variable for your home directory path. The same thing would happen if you used the full path /path/to/my/homedir

If you try to remove $HOME, it will try to remove YOUR home directory. That's why you get the "busy" error.

"you can't pull the rug out from under your own feet"

you have to go into you /home directory and the delete the users directory from there there.So if you want to delete bobs home directory just type 'rm -rf bob' and your done.