I thought you might be interested in looking at Possible to remove a map object using it's ID?.
https://forums.bohemia.net/forums/topic/103237-possible-to-remove-a-map-object-using-its-id/?do=findComment&comment=2838412
× Pasted as rich text. Restore formatting
Only 75 emoji are allowed.
× Your link has been automatically embedded. Display as a link instead
× Your previous content has been restored. Clear editor
× You cannot paste images directly. Upload or insert images from URL.