Nibesh Khadka explains how to use Google Apps Script to delete duplicate files. This blog is meant for both coders and non-coders, so, please do humor the over-explanation. You can set up a time-based trigger to automate this task.
Khadka's Coding Lounge.
@kcl
As a freelancer, I create addons and scripts to automate google products such as sheets, Gmail, docs with apps script.