delete_duplicate function

Delete duplicate data