def remove_project(self, project):
        def remove_callback():
            ok = sublime.ok_cancel_dialog("Remove project %s from Project Manager?" % project)
            if ok:
                pfile = self.project_file_name(project)
                if self.which_project_dir(pfile):
                    self.close_project_by_name(project)
                    os.unlink(self.project_file_name(project))
                    os.unlink(self.project_workspace(project))
                else:
                    for pdir in self.projects_path:
                        j = JsonFile(os.path.join(pdir, "library.json"))
                        data = j.load([])
                        if pfile in data:
                            data.remove(pfile)
                            j.save(data)

        sublime.set_timeout(remove_callback, 100)
dataset/ETHPy150Open randy3k/Project-Manager/pm.py/Manager.remove_project/original