             if let deletenum = Int(self.deletenum.stringValue) {
                 if self.snapshotsloggdata!.catalogstodelete == nil {
                     self.updateProgressbar(Double(deletenum))
+                    self.delete = false
+                    self.deletenum.stringValue = ""
+                    self.snapshotsloggdata = SnapshotsLoggData(config: self.config!)
                 } else {
                     let progress = deletenum - self.snapshotsloggdata!.catalogstodelete!.count
                     self.updateProgressbar(Double(progress))

        case 4:
            self.info.stringValue = "Max 5 catalogs to delete..."
        case 5:
            self.info.stringValue = "Enter a proper number..."
        case 6:
            self.info.stringValue = "Select Source button to update..."
        default:
            self.info.stringValue = ""
        }

        var arguments: SnapshotDeleteCatalogsArguments?
        var deletecommand: SnapshotCommandDeleteCatalogs?
        guard self.snapshotsloggdata?.catalogstodelete != nil else {
            return
        }
        guard self.snapshotsloggdata!.catalogstodelete!.count > 0 else { return }
