Open
Description
Proposed change
I haven't found a way to delete a consumer using the Python SDK, the official documentation shows how to do it in Go using the DeleteConsumer
method, but it doesn't seem to exist in nats.py
.
Calling sub.unsubscribe()
doesn't delete the consumer either.
Use case
My App is creating a one off pull based consumer and it needs to clean it after the work is done. I don't want to use an ephemeral consumer because I want to give it a name, and I need to explicitly control its lifecycle.
Contribution
If the proposal is accepted I'm willing to push a PR.