How to Clear All Data in TiKV

Note:
This topic has been translated from a Chinese forum by GPT and might contain errors.

Original topic: TIKV如何清空全部数据

| username: TiDBer_59ZckvWa

[Test Environment for TiDB] Testing
[TiDB Version] Not used
[Encountered Problem: Problem Description and Impact]
TiDB is not used, only TiKV and PD components are used. We use TiKV solely for persistent KV storage. Is there a command similar to Redis’s flushall to clear all stored data?

| username: Kongdom | Original post link

Is this the way to clear data?

| username: tidb菜鸟一只 | Original post link

Is there no tiup? If you have it, you can directly use “tiup cluster clean <cluster_name> --all” to clean it.

| username: TiDBer_59ZckvWa | Original post link

Did you only use tiup playground --mode tikv-slim to start it on a single machine?

| username: TiDBer_59ZckvWa | Original post link

Just used tiup playground --mode tikv-slim to start a single node?

| username: Kongdom | Original post link

This is automatically cleaned up, right?

| username: system | Original post link

This topic was automatically closed 60 days after the last reply. New replies are no longer allowed.