rm: cannot remove Directory not empty code example Example 1: rmdir not empty Click to copyrm -rf dir-name Example 2: remove a non empty directory Click to copysudo rm -R [Directory name]