# Duplicates - Move Duplicates to Trash

**URL:** <https://discourse.devontechnologies.com/t/duplicates-move-duplicates-to-trash/67166>\
**Category:** DEVONthink\
**Created:** [October 12, 2021, 8:53pm UTC](https://discourse.devontechnologies.com/t/duplicates-move-duplicates-to-trash/67166 "2021-10-12T20:53:08Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![kappabear](https://discourse.devontechnologies.com/letter_avatar_proxy/v4/letter/k/41988e/32.png) [@kappabear](https://discourse.devontechnologies.com/u/kappabear)\
**Post date:** [October 12, 2021, 8:53pm UTC](https://discourse.devontechnologies.com/t/duplicates-move-duplicates-to-trash/67166/1 "2021-10-12T20:53:08Z")

</div>

For as long as I’ve been using DT, I’ve been archiving my email and have well over 16GB. I’m going through and cleaning up spam and other email that is not needed, and is taking up space. I’ve found that I have over 1000 duplicate emails, and want to get rid of those. I see that there’s a script called “Move Duplicates to Trash”, and I’m curious about exactly what it’s going to do. If I were to run/execute it, would move **both** the original and the duplicate to the trash (which I don’t want it to do)? If not, which is moved, and how is that decision made?

---

<div class="post-metadata">

**Author:** ![cgrunenberg](https://discourse.devontechnologies.com/user_avatar/discourse.devontechnologies.com/cgrunenberg/32/7172_2.png) [@cgrunenberg](https://discourse.devontechnologies.com/u/cgrunenberg)\
**Post date:** [October 13, 2021, 6:48am UTC](https://discourse.devontechnologies.com/t/duplicates-move-duplicates-to-trash/67166/2 "2021-10-13T06:48:36Z")

</div>

> [@kappabear](#):
>
> If I were to run/execute it, would move **both** the original and the duplicate to the trash (which I don’t want it to do)?

No, one copy remains. But I would suggest to enable the stricter recognition of duplicates first.

> [@](#):
>
> If not, which is moved, and how is that decision made?

The script doesn’t prefer any duplicate as there’s no such thing like an original in DEVONthink. It just processes the selection. Selected items which aren’t duplicates anymore (as the other duplicate was already trashed while processing the selection) are skipped, therefore one copy remains.

---

<div class="post-metadata">

**Author:** ![kappabear](https://discourse.devontechnologies.com/letter_avatar_proxy/v4/letter/k/41988e/32.png) [@kappabear](https://discourse.devontechnologies.com/u/kappabear)\
**Post date:** [October 13, 2021, 3:33pm UTC](https://discourse.devontechnologies.com/t/duplicates-move-duplicates-to-trash/67166/3 "2021-10-13T15:33:20Z")

</div>

@cgrunenberg Thank you. 🙂
