https://github.com/bewaremypower/batch-deleted-topics
https://github.com/bewaremypower/batch-deleted-topics
Last synced: 10 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/bewaremypower/batch-deleted-topics
- Owner: BewareMyPower
- Created: 2023-10-18T07:21:26.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2023-11-20T06:44:33.000Z (over 2 years ago)
- Last Synced: 2025-08-31T01:36:20.940Z (10 months ago)
- Language: C++
- Size: 9.77 KB
- Stars: 1
- Watchers: 2
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# batch-delete-topics
A CLI tool to delete topics whose name contains "test-topic" under "public/default" namespace.
The motivation is that when running openmessaging benchmark for KoP, many topics might be created while the topic auto deletion are disabled.
## Usage
Make sure you have a C++ compiler that supports C++17.
First, download the `nlohmann/json` repo as the library to handle JSON strings.
```bash
git clone https://github.com/nlohmann/json.git
```
Then, build the CLI tool (assuming the compiler is `g++`):
```bash
./build.sh
```
Get the URL (e.g. `https:/xxx`) and token from SN cloud and run:
```bash
./a.out
```