Hurricane for Autodesk® AutoCAD®
Hurricane comes with a couple of scripts for purging.
Take a moment to look at the contents of the scripts by clicking on their names in the user-script library. They have the word "purge" in their file names.
You can probably use any of them "as-is" or may want to modify them to suit your needs.
But you might want to try out the PURGE WIZARD as this tool makes purging scripts very easy.
Block won't purge? How to Delete a Block in AutoCAD explains what keeps a block definition in the drawing and how to clear it.