clear
Overview
The clear function empties a given collection.
Syntax
<collectionVariable>.clear();
where,
| Parameter | Data type | Description |
| <collectionVariable> | COLLECTION | The variable from which key value pairs or elements will be removed. |
Examples
productVersion=collection("Deluge":5,"CRM":2,"Mail":8); productVersion.clear(); info productVersion;// Returns {}