Remove duplicate documents.