Add delete of function when updating provider