delete Note

@Modifying(clearAutomatically = true )
@Query(value = ""DELETE FROM " + NOTES_KEY + " WHERE " + IDENTIFIER_KEY + "=:" + IDENTIFIER_KEY + " AND " + AUTHOR_KEY + "=:" + AUTHOR_KEY", nativeQuery = true )
abstract fun deleteNote(@Param(value = "author") authorId: String, @Param(value = "id") noteId: String)

Method to execute the query to delete a Note

Parameters

authorId

The author of the note identifier

noteId

The note identifier