How I can delete/clean a Hash in redis?

I want to set a cron on server to delete/clean a Hash on regular interval. What will be the command ?

1 Like

You can add below command :

redis-cli KEYS *YOUR_HASH_NAME* | xargs redis-cli DEL

1 Like