Fastmail users: Is it possibly to delete the attachments from a batch of emails either as a batch or with a script of some sort?

I do not want to delete the emails, only the attachments.