Whoops - please ignore my last comment. I realized this bug has been fixed (just getting used to launchpad).
Note:
The code:
for name, id in pairs(getAreaTable()) do
deleteArea(tonumber(id))
end
(Still) doesn't necessarily delete all areas. This is because getAreaTable returns a table of {[ area name, area id ]}. So if there are multiple areas with the same name, only one of those areas will be deleted because getAreaTable returns a table where the area name is unique.
Whoops - please ignore my last comment. I realized this bug has been fixed (just getting used to launchpad).
Note:
The code:
for name, id in pairs(getAreaTa ble()) do tonumber( id))
deleteArea(
end
(Still) doesn't necessarily delete all areas. This is because getAreaTable returns a table of {[ area name, area id ]}. So if there are multiple areas with the same name, only one of those areas will be deleted because getAreaTable returns a table where the area name is unique.