add the plan delete function