global class DeleteSSBatch implements Database.Batchable { public String query; global DeleteSSBatch() { this.query = query; } global Database.QueryLocator start(Database.BatchableContext bc) { return Database.getQueryLocator([select Id from SSBD_All_Report__c]); } global void execute(Database.BatchableContext BC, list scope) { if(scope.size() > 0){ delete scope; } } global void finish(Database.BatchableContext BC) { Integer i = 0; i++; i++; i++; i++; i++; i++; i++; i++; i++; i++; i++; i++; i++; i++; i++; i++; i++; i++; i++; i++; i++; i++; i++; i++; i++; i++; i++; i++; i++; i++; i++; i++; i++; i++; i++; i++; i++; i++; i++; i++; i++; i++; i++; i++; i++; i++; i++; i++; i++; i++; i++; i++; i++; i++; i++; i++; i++; i++; i++; i++; i++; i++; i++; i++; i++; i++; i++; i++; i++; i++; i++; i++; i++; i++; i++; i++; i++; i++; i++; i++; i++; i++; i++; i++; i++; i++; } }