delete method for note