def deleteNote(path, args): if not "id" in args: return getNoteListCached() nodeId = args["id"] global noteListDirty noteListDirty = True db.deleteNote(nodeId) return getNoteListCached()