You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Port 9443 is the default [port configuration]({{< relref "/operate/rs/networking/port-configurations#https://docs.redis.com/latest/rs/networking/port-configurations#ports-and-port-ranges-used-by-redis-enterprise-software" >}}).
42
43
{{< /note >}}
43
44
45
+
## Flush data from an OSS Cluster API database
46
+
47
+
When using the OSS Cluster API, the `FLUSHDB` command only flushes the keys of the shard you're connected to, not all keys in the database. To flush all data from an OSS Cluster API database, you need to connect to each endpoint IP address and run the flush command.
48
+
49
+
Follow these steps to flush all data from an OSS Cluster API database:
50
+
51
+
1. Find all IP addresses associated with the database endpoint using the `dig` command:
52
+
53
+
```sh
54
+
dig +noall +answer <database-endpoint>
55
+
```
56
+
57
+
2. Connect to each IP address using [`redis-cli`]({{<relref "/operate/rs/references/cli-utilities/redis-cli">}}) and run the [`FLUSHDB`]({{<relref "/commands/flushdb">}}) command:
58
+
59
+
```sh
60
+
redis-cli -h <ip-address> -p <port> flushdb
61
+
```
62
+
63
+
### Example
64
+
65
+
1. Find all IP addresses for the database endpoint:
0 commit comments