Remove key-value from dictionary

I am using Profile Service and I want to remove a key-value from the data store

profile.Data[SELL_ORDERS_CATEGORY][robotName][price] = nil

None of these are nil, but when I am printing profile.Data[SELL_ORDERS_CATEGORY][robotName][price]

It prints the value of price which is 2. But I want to remove the key-value: price, 2
Is this possible?

1 Like

in order to remove a table entry in a dictionary just simply set the key to nil like so

table[entryToRemove] = nil
1 Like