28.06.2022, 09:47
Use this, change the tag name as needed. And make a backup just in case
Code:
tag = 'test'
tagged = {}
objs = grp.tag(tag)
for _, obj in ipairs(objs) do
tagged[ obj.address ] = true
end
objs = grp.all()
for _, obj in ipairs(objs) do
if not tagged[ obj.address ] then
grp.delete(obj.address)
end
end