confluent-kafka-python icon indicating copy to clipboard operation
confluent-kafka-python copied to clipboard

Add flag for subject version permanent delete

Open rsolovev opened this issue 2 years ago • 1 comments

The SchemaRegistryClient delete_version() function does not have ?permanent=true functionality mentioned in Schema Registry API reference - https://docs.confluent.io/platform/current/schema-registry/develop/api.html#delete--subjects-(string-%20subject)-versions-(versionId-%20version)

https://github.com/confluentinc/confluent-kafka-python/blob/370d62e2029d80f12fdf04dca9afbbd664962625/src/confluent_kafka/schema_registry/schema_registry_client.py#L563-L585

Added flag support similar to delete_subject() implementation and taking into the account this documentation lines:

The default is false. If the flag is not included, a soft delete is performed. You must perform a soft delete first, then the hard delete.

rsolovev avatar Apr 18 '23 21:04 rsolovev

CLA assistant check
All committers have signed the CLA.

cla-assistant[bot] avatar Aug 15 '23 18:08 cla-assistant[bot]