How do I remove a note through backend api? #4729
Replies: 2 comments
-
Just a quick update. I've discovered the reason why the directories (notes) weren't being deleted as I expected. It turns out that the |
Beta Was this translation helpful? Give feedback.
0 replies
-
I found a discussion about this, and it still works. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I've been experimenting with the Task Manager example provided officially and trying to modify it for a specific use case. The original example automatically creates a directory for a new tag and clones the current note into that directory when the tag is added to a note. However, I noticed that when a tag is removed from a note and subsequently the associated tag directory becomes empty, the directory is not automatically removed.
To address this issue, I attempted to modify the example to automatically delete an empty directory once its associated tag is removed from all notes. Unfortunately, my modifications have not been successful in achieving the desired outcome. Below is the snippet of the code I've been working with, but it hasn't resulted in the directory being deleted:
"attribute changed/reconcileAssignments":
I'm seeking guidance on how to properly remove an empty directory (note) through the backend API. Does anyone know the correct way to approach this problem or if there's an existing function or method in the API that I might have overlooked? Any suggestions or insights into solving this issue would be greatly appreciated.
Beta Was this translation helpful? Give feedback.
All reactions