Open
Description
Problematic
Hey, I have ~200 schemas at Schema Registry and I need to delete them all. Now I need to write bash script for it:
for subject in $(curl -s http://localhost:8081/subjects | jq -r '.[]'); do
echo "Deleteing '$subject'"
curl -X DELETE "http://localhost:8081/subjects/$subject?permanent=true"
done
It is pretty uncomfortable, because it is not possible to run it in Postman / Insomnia (REST Clients). So I suppose to create a new REST API endpoint for it
Goal
- As a developer, I need an option to delete all schemas by one REST API call, to reduce time on managing Schema Registry
Solution
- Create a new REST API endpoint to delete all schemas by one REST API call
- It must support soft and hard deletes
- Possible API:
curl -X DELETE "http://localhost:8081/subjects[?permanent=true]"
Sources
Metadata
Metadata
Assignees
Labels
No labels