Duplicated mails on migration

Duplicated mails on migration

Hi! 

I've donde the migration of all my emails from an account on gmail.
And it went just fine, except that there are three copies of each mail. 
How can delete them all togheter, to keep only one of each?
Thank you
Maria