Skip to content

REST API Batch Delete -- Delete All Schemas #3665

Open
@bas-kirill

Description

@bas-kirill

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

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions