Sindhu's code integrated for deleteNote