delete function updation