Go to: Synopsis. Return value. MEL examples.
clear
<array>
clear is undoable, queryable, and editable.
Frees the memory being used by an array after it is no longer needed.$list=`ls -shapes`; // Result: nurbConeShape1 nurbCylinderShape1 nurbSphereShape1 // print (`size $list`+"\n"); // 3 clear $list; // Result: 0 // print (`size $list`+"\n"); // 0