Delete allocated callback.