def cleanup(output_root):
    """Remove any reST files which were generated by this extension"""
    if os.path.exists(output_root):
        if os.path.isdir(output_root):
            rmtree(output_root)
        else:
            os.remove(output_root)