https://github.com/hobbyquaker/mqtt-forget
Command line tool to remove retained MQTT topics by wildcard
https://github.com/hobbyquaker/mqtt-forget
clear delete mqtt remove retain retained topic
Last synced: 21 days ago
JSON representation
Command line tool to remove retained MQTT topics by wildcard
- Host: GitHub
- URL: https://github.com/hobbyquaker/mqtt-forget
- Owner: hobbyquaker
- License: mit
- Created: 2017-10-19T16:44:03.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2018-02-25T18:05:58.000Z (about 7 years ago)
- Last Synced: 2025-03-28T06:51:10.606Z (about 1 month ago)
- Topics: clear, delete, mqtt, remove, retain, retained, topic
- Language: JavaScript
- Size: 4.88 KB
- Stars: 10
- Watchers: 2
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# mqtt-forget
[](http://badge.fury.io/js/mqtt-forget)
[](https://gemnasium.com/github.com/hobbyquaker/mqtt-forget)
[](https://travis-ci.org/hobbyquaker/mqtt-forget)
[](https://github.com/sindresorhus/xo)
[![License][mit-badge]][mit-url]> Command line tool to remove retained MQTT topics by wildcard
## Install
`$ sudo npm install -g mqtt-forget`
## Usage
```
Usage: mqtt-forgetOptions:
-d, --debug Enable debug messages
-t, --topic MQTT topic, wildcards + and # allowed, may be repeated [required]
-u, --url MQTT broker url [default: "mqtt://127.0.0.1"]
-f, --force Remove topics without confirmation
--help Show help
--version Show version number
```## Examples
#### Remove all topics matching test/# via websocket connection
`$ mqtt-forget -u ws://websocketbroker -t 'test/#'`
#### Remove all retained topics without confirmation, broker with authentication
`$ mqtt-forget -u mqtt://user:password@broker -t '#' -f`
## Contributing
Pull Requests welcome! :-)
## License
MIT (c) 2017 [Sebastian Raff](https://github.com/hobbyquaker)
[mit-badge]: https://img.shields.io/badge/License-MIT-blue.svg?style=flat
[mit-url]: LICENSE