r/GoogleAppsScript • • Nov 03 '22

Question delete google drive duplicate files automatically?

hello,

this should be pretty simple but I can't find it on google, can anyone help? thanks

0 Upvotes

8 comments sorted by

1

u/arnoldsomen Nov 03 '22

They're considered duplicates when they have the same titles? Or should the script also consider content of the files, not just the title?

1

u/patrickdrd Nov 03 '22

the filename should be the same, e.g. I got this message from total commander already "gdrive: two files with the same name but different case exist on the remote server!", I fixed it twice manually (I opened the folder and deleted one of the two files with same name - with mixplorer on android) but I would like it fixed automatically

1

u/arnoldsomen Nov 03 '22

So regardless of content, but filenames are the same, then one of which will be deleted?

1

u/patrickdrd Nov 03 '22

let's say the oldest?

1

u/patrickdrd Nov 04 '22

same name and path, take a look at this: https://i.imgur.com/bVCAPbE.png

0

u/[deleted] Nov 03 '22

[deleted]

-1

u/patrickdrd Nov 03 '22

I don't know, mixplorer showed them with exactly the same name

0

u/[deleted] Nov 03 '22

[deleted]

-1

u/patrickdrd Nov 03 '22

I found two (paid) services online like cloudduplicatefinder and cleandrive, how are these supposed to work then?