Originally posted by Tinkster
Or (slightly shorter)
rm -rf /home/username/test
just adding a little to this, be careful when you are root with rm, for example:
rm -fr / home/username/test
notice the accidental space between / and home (which the shell will interpret as "remove the root directory ( / )), if you accidentally do this, say goodbye to your entire filesystem.