cmd command to delete a non-empty directory code example
Example 1: delete non empty directory cmd
rm -rf directoryname
Example 2: how to delete directory in unix
rmdir directoryname // This is will delete an empty directory.
rmdir -r directoryname // This is will delete everything in the directory
// including all files and subdirectories.