Here is my batch apex .it is not deleting records
global class BatchProcessorder implements Database.Batchable<sObject>{
String query;
DateTime lastTwoDays = DateTime.now().addDays(-30);
global Database.querylocator start(Database.BatchableContext BC){
Query = 'SELECT ID FROM order_batch__c where CreatedDate >:lastTwoDays';
return Database.getQueryLocator(query);
}
global void execute(Database.BatchableContext BC, List<order_batch__c> scope){
List<order_batch__c> oppList = new List<order_batch__c>();
for(order_batch__c a : scope){
if(a.Save_order__c=false)
oppList.add(a);
}
delete oppList ;
}
global void finish(Database.BatchableContext BC){
}
}
I have scheduled two to three time with changes .still the same it is happening