To delete everything in Redis, you can use the “FLUSHALL” command. This command will remove all keys from all databases in the Redis instance.
You can run the command in the redis-cli by typing:
$ redis-cli FLUSHALL
or in python redis library
import redis
r = redis.Redis()
r.flushall()
Please be careful when using this command, as it will permanently delete all data stored in Redis.