ds_map_delete

With this function you can remove any given key (and its corresponding value) from the given, previously created, DS map .

 

Syntax:

ds_map_delete(id, key);

ArgumentTypeDescription
idDS MapThe id of the map to change.
keyStringThe key to delete (along with its associated value).

 

Returns:

N/A

 

Example:

ds_map_delete(inventory, "shield");

The above code will delete the key "shield" (and the value it is paired with) from the DS map (inventory).