Find and delete duplicate documents

There is no straightforward solution.

You could scroll over all documents and query for each and every document id if there are any duplicates.