Unique key for deleting duplicate notes in API

Hello,

I’m trying to remove hundreds of duplicate notes in Joplin system.

I already have a way to find duplicates:

  • I export notes as individual files

  • I process them and detect duplicates

Now I need to delete them in the API, and I need to know what to use as the unique key.

  • Is the unique key in the file name?

  • Or Is it in the file somewhere itself?

  • Where can I find a unique key that will allow me to choose the exact note to delete in the API?

Thanks.