Purge Extension

…in addition to DaveR:
https://extensions.sketchup.com/extension/fdc17351-d7a8-4bda-9e69-fb93bf15806e/purge-tool

You can start to learn Ruby here

(BTW. You can edit your first post and give a proper name and move to proper categories eg. [developers] [ruby-api] )