For Sketchup for Web, I found a post from several years ago saying it’s possible to purge unused components by clicking the “recycle” icon at the bottom of the Components panel, but I don’t see a “recycle” icon there now.
Moreover, that would purge only unused components. Is it possible to purge unused tags, geometry, etc as well?