Adding delete api call. Updating references to notegroup.