Updated also for deleteNotes