Redis - truncate database
redis-cli
FLUSHDB
exit

Use the -n argument to choose DB number:

redis-cli -n 2
FLUSHDB
exit