How do I delete everything in Redis?

前端 未结 22 979
无人共我
无人共我 2020-11-28 17:18

I want to delete all keys. I want everything wiped out and give me a blank database.

Is there a way to do this in Redis client?

22条回答
  •  情深已故
    2020-11-28 17:30

    Answers so far are absolutely correct; they delete all keys.

    However, if you also want to delete all Lua scripts from the Redis instance, you should follow it by:

    SCRIPT FLUSH

    The OP asks two questions; this completes the second question (everything wiped).

提交回复
热议问题