Improved delete method to remove object from local notes/groups collection