Write a script to remove duplicate data.