Yes, there is a way how to do it via code and Expired jobs, I was researching this a few days ago (I have over 1million jobs I want to delete), but forgot where it was, maybe in theW P All Import section.
Would like to join your question, as need to know the answer as well ??