delete on error call back