Deleting the duplicate entries in a collection type

thanks @Shekhar