mutapath.Path.rmdir_p

Path.rmdir_p()[source]

Like rmdir(), but does not raise an exception if the directory is not empty or does not exist.