Delete missing modules from canvas / file

Cant find an answer to this by searching which is suprising…

When opening a GH file that uses modules from a package I dont have, I get a warning message listing the modules, but no option to delete these modules form the file (so I can save a version WITHOUT the missing modules and use modules I do have to recreate the geometry)

Did I miss something?

I think you probably are referring to “placeholder” objects.

See this Delete PlaceHolder Component
There is comment from David about the situation and a useful script from Seghier.