MDL-8605 using remove_dir instead of rmdir, which doesn't support deleting non-empty directories
MDL-8605 using remove_dir instead of rmdir, which doesn't support deleting non-empty directories

dilawar/moodle