How to remove a value from storageMap?

Hi guys, I have a need to remove a value from storageMap during SPARK development, I have studied the documentation for storageMap and I can’t find any information on how to remove a value there.

While debugging I tried to do this and the code copied without errors.

storage.account_market_map.remove((trader, base_token));

Can you please tell me if this will work correctly?

Hello @fuel, this method will correctly remove the item from your StorageMap. :slight_smile:

2 Likes

Thank you, ser :sparkles::saluting_face::zap:

2 Likes