I've got a TOPOJSON file that is nearly perfect, but contains one item (a multi polygon) that I'd like to remove. Doing so manually from the code is difficult because it'd require manually counting through hundreds of arcs in the nested arrays.
The feature in question has an ID I can identify it by, so I thought this would be easy using the MapShaper console. However looking in the docs I'm struggling to find any tool that seems to do this. Closest is
-erase. Remove features or portions of features that fall inside an area.
...but it seems like all the direct targeting options are for targeting layers, not features, or by drawing a bounding box (which for this geography is tricky). Everything I've tried to select the feature by ID instead tries and fails to find a layer with an error message
Missing data layer.
Surely there's a simple way to do something like (fake code):
I'm open to suggestions using (ideally open-source) tools other than MapShaper, but I'd prefer to not need to convert my TopoJSON to another format then back again, and would prefer a simple solution to such a seemingly simple problem.