Skip to content

Ability to delete a consumer #567

Open
@superlevure

Description

@superlevure

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.

Metadata

Metadata

Assignees

Labels

acceptedThe defect or proposal as been accepteddocsImprovements or additions to documentation

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions