It is possible to find the duplicate entries in the database and delete them. Below is the example of removing duplicate email entries in your database. You can replace the Email field with the field name that you want to find for duplicate entries.
Create a new function. The function’s script can be of the below kind:
Create two lists. One for the duplicates and the other for the original.
Fetch all the records in the form
Check if there exists a duplicate value, if yes, add the record ID to the duplicateRecordIDList list.
If there is not a duplicate entry add it to myList List
If you want to delete the duplicate entries,