rm command remove the file as well as directories.

Syntax :

$ rm aman.txt

If you want to delete the whole directories structure along with having files in it. Use the command

$ rm -r [parent directory name]

For example;

abhisharmaofficial.blogspot.com


$ rm -r software

This command delete the whole directories structure having files in it as you show the above image.


Your feedback is very important for us :)