That is highly risky!
If a sync is set up, this can lead to synchronization problems!
I absolutely advise against doing this unless you know 100% how Joplin works internally.
Always use the API to delete/edit notes, do not edit the Synctarget files or sqlite database directly!