I'm trying to delete the records of a particular object which have not been modified in last 30 days. For this I have my batch Apex set up but just not been able to build the query.
Query written so far:
Select id from XYZ__c where SystemModStamp >= LAST_N_DAYS:3 OR LastModifiedDate