clear

(List Object Variable Method)

Removes all elements from the variable.

Syntax:

$[ScriptVariable]::clear()

Parameters:

None

Example:

The following example illustrates the syntax for the clear list method:

$recipients::clear()