Usually clearing an array means to set each element to zero. If you tried to reduce the size of the array or remove elements it would create bigger problems afterwords.
Depending on what type of array you have it may take a for loop to set each element to zero,