             }
             guard self.confirmdelete.state == .on else {
                 self.info(num: 3)
+                return
+            }
+            guard delete > 0 else {
+                self.info(num: 5)
                 return
             }
             self.snapshotsloggdata!.preparecatalogstodelete(num: delete)

        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 = ""
        }

            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))
