remove callback from delete function