Choose where you’d like to start

remove()

Overview

The remove() function takes mapVariable and key as arguments, and removes the specified key along with its value from mapVariable.

Syntax

<mapVariable>.remove( <key>);
ParameterDescriptionData type
<mapVariable>The map variable from which the key-value pair will be removed.KEY-VALUE
<key>

The key which will be removed along with the value.

If the specified key is not found, mapVariable will be returned as it is.

AS APPLICABLE

Examples

details ={"Company": "Zoho", "Product": "Creator", "Version":5};
details.remove("Version");                    
//Now the map variable details will have {"Company": "Zoho", "Product": "Creator"}

Get Started Now

Execute