removing a rest function of the removed flow program type