delete element(s) in array