Add onFailure callback to delete