delete redis code