To remove a non-empty directory and its subdirectories, files, etc., you can use the rm -r command with the -r option on the Linux command line. Additionally, You can also use two more commands to delete non-empty directories in linux,
Read More Delete Non Empty Directory Ubuntu Linux Command Line