How to remove same vectors from array?

I mean. I have array of vectors and few of those vectors has the same location so I want to remove othere vectors with the same locations and lieave only one ( like merge in blender). then make tem in the row - if i remove them I dont’ want to have empty spaces in array in array.
Thanks for help