Any way to strip / remove attachments from references?

I have a large refee3nce library.  About 25% have PDF attachments assoictaed with them that are making the DB huge. I dont really need these and would like to strip out the attachments.  Is there an easy way to accomplish that without having to do to each reference?  Thanks!

X3 has the facility to export/compress all or parts of the library with or without the file attachments. 

What a clever way for them to get me to upgrade ;^)  Thank you!