bulkDelete error

so i'm trying to use bulkDelete but if the message is over 2 weeks it won't delete, thats fine but when I get the error it will exit the process even if I use try, is there anyway I can check if I can bulkDelete the message?
Was this page helpful?