Is there a quick way to remove duplicate entries from a 1 dimensional array?

Say I have an array of 1,000 entries and elements 150 and 200 are already listed elsewhere in the array. How would I remove these two lines and return the array with a new size of 998 elements?

Finding the dups appears straightforward enough, simply sort into order and work through the array checking the lines with the previous one. It's the removing and resizing (or redimming) that's got me stumped.

Thanks