Thanks for replying!
After pasting the script in the AppleScript editor I got syntax errors due to the presence of ‘unknown tokens’. After removing these tokens in BBEdit I was able to run the script.
Unfortunately I have already deleted some of the test databases so I can’t use the script to get all the needed UID’s.
Also, I don’t have a DevonThink folder in ~/Dropbox/Apps/.
And, I don’t understand what ‘rinse and repeat’ means (I am not a native speaker of English).
However, on Dropbox online I do have a DEVONThink folder in Apps. It contains two folders: databases and transactions. Each subfolder of the databases folder contains a file ‘metadata’ with the name of the database. This solved the problem of determining which subfolders of Apps/DEVONThink/database should be removed and which should be kept.
Unfortunately, deleting the test databases freed up only a few Megs, less than 1% of my space on Dropbox. Because the space used on dropbox increased with more than 10% during testing DEVONThink Sync, it seems that there are some remnants left.
Moreover, I couldn’t find all my test databases: the ones that crashed during the first sync are lacking. Could it be that the ‘transactions’ folder contains remainders of the databases that I no longer use? If so, which parts of that folder should I remove to free up the other 9% of space on Dropbox?