Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/segment-boneyard/nsq-delete-topic

Delete a nsq topic and all its channels and messages
https://github.com/segment-boneyard/nsq-delete-topic

Last synced: about 7 hours ago
JSON representation

Delete a nsq topic and all its channels and messages

Awesome Lists containing this project

README

        

# nsq-delete-topic

Delete a nsq topic and all its channels and messages.

## API

### deleteTopic(nsqlookupd, topic, fn)

Given a string or array of strings of `nsqlookupd` addresses, and a `topic`,
delete that topic from all known instances of `nsqd` and call `fn` with the
possible error object.

```js
var deleteTopic = require('nsq-delete-topic');

deleteTopic('http://localhost:4161', 'events', function(err){
// ...
});
```

## Installation

```bash
$ npm install nsq-delete-topic
```

## License

MIT