fix a error
add delete redis code for train