global class DeleteBatch implements Database.Batchable<sObject>{
    global String queryString;
    global DeleteBatch(String queryString){
        this.queryString = queryString;
    }
    global Database.QueryLocator start(Database.BatchableContext bc) {
       
        return Database.getQueryLocator(this.queryString);
    }
    global void execute(Database.BatchableContext BC, List<sObject> scope) {
        try{
            delete scope;
        }Catch(Exception e){
            system.debug('ERROR:' + e.getMessage());
        }
    }
    global void finish(Database.BatchableContext BC) {
    }

}