You need to put the not broken tanks into a temporary array and then rebuild the original array
by the temporary array.
Just an example by using normal units:
original_array = [w1,w2,w3,w4]
temporary_array = []
"if (alive _x) then {temporary_array = temporary_array + [_x]}" forEach original_array
original_array = temporary_array
temporary_array = []
~S~ CD