Since you have 2 dimensions in a 2D array, the concept of "consecutive" is meaningless for elements except for the special case where one of the dimensions is 1.
All colums (or rows) must have equal length, it is thus not possible to just arbitrarily remove elements. The best you can do is replace individual elements with NaN.
Could it be you want to eliminate entire repeated columns or rows? This would make a bit more sense. Please post an example to clarify your problem.