public async Task Delete(CommandContext ctx, string name) { await NotifyWorking(ctx, "Delete " + name); var interactor = new Interactor(ctx); interactor.Start(); lock (ProjectMgr.GetLocker(name)) { ProjectMgr.DeleteProject(name, interactor); } interactor.StopAndWait(); await NotifyFinish(ctx); }