This is how I know to remove duplicates from Microsoft OneDrive by following those steps ;
1. Sort your files by name or size in the web or app view. The duplicates usually sit next to each other.
2. Use the search bar to type the file name and manually delete extras.
3. Check your Photos folder. The duplicates often happen there from auto-uploads.
4. Empty the Recycle Bin afterward to free up space.