I have something like this:
mapping (address => mapping(string => uint)) m_Map;
It can be accessed as
m_Map[strCampaignName][addrRecipient]
, campaign can have multiple recipients...
Now at some point (ICO failed), I need to remove that campaign with all recipients. I don't think a simple
delete m_Map[strCampaignName]
will work.
If I use
m_Map[strCampaignName] = null
, I think data will not be deleted.
If I iterate through a list of all recipients, I will run out of gas.
How should this situation be handled? Min: I want m_Map[strCampaignName] to be empty, Max: I want to stop wasting memory on it.