Choose where you’d like to start

clear()

Overview

The clear() function takes a listVariable as an argument, and removes all elements from the list.

Syntax

<listVariable>.clear();
ParameterDescriptionData type
<listVariable>The list variable whose elements will be removed.NUMBER

Examples

listVar = {"Projects", "Mail", {"Zoho Creator", "Zoho CRM"}};
listVar.clear();            // empties the given list

Get Started Now

Execute