Skip to content

Remove Dictionary Key

Type: dict-remove  ·  Package: Collections Activities v1.0.3  ·  Output: none

Removes the entry (key and its value) from a dictionary. If the key does not exist, it does nothing.

Removes from dict the entry whose key is key (converted to text). It modifies the dictionary directly: any variable pointing to it sees the change. Removing a key that does not exist is not an error, so you can use it without checking first.

ParameterTypeDefaultDescription
dictDictionary—The dictionary.
keystring—The key to remove.

None.

This activity does not return a value; it modifies the dictionary in place.

MessageCause and fix
'dict' must be a Dictionary, got ….dict is not a dictionary (the message shows the type received, or null).
'key' cannot be null.The key expression returned null.
Remove Dictionary Key dict = config key = "temporary"
Dictionary Count dict = config → output: remaining