SOQL на прошлой неделе
Select * from case where WHERE CreatedDate = LAST_N_DAYS:30
Wicked Willet
Select * from case where WHERE CreatedDate = LAST_N_DAYS:30
delete [SELECT Id FROM Opportunity WHERE CreatedDate = LAST_YEAR];