Go to: Synopsis. Return value. MEL examples.

Synopsis

clear array

clear is undoable, NOT queryable, and NOT editable.

Frees the memory being used by an array after it is no longer needed.
After an array is cleared, its size will be zero.

Return value

None

MEL examples

$list=`ls -shapes`;
// Result: nurbConeShape1 nurbCylinderShape1 nurbSphereShape1 //
print (`size $list`+"\n");
// 3
clear $list;
// Result: 0 //
print (`size $list`+"\n");
// 0