Deletes a tree and returns true if it was correctly deleted

def safeRmTree(rootPath):
        """
        Deletes a tree and returns true if it was correctly deleted
        """
        shutil.rmtree(rootPath, True)

        return not os.path.exists(rootPath)