Agent uninstall script
GET
/api/v1/agent/uninstall.sh
const url = 'http://localhost:8080/api/v1/agent/uninstall.sh';const options = {method: 'GET'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request GET \ --url http://localhost:8080/api/v1/agent/uninstall.shRemoves what the install script set up: the agent service, binary, sudo rule, environment
file, state and account. It changes nothing while Kafka runs unless given --stop-kafka;
--remove-kafka removes the Kafka releases and --delete-data the Kafka data directory.
Running it again removes what is left.
Responses
Section titled “Responses”POSIX shell script, run as root.
Media typetext/x-shellscript
string
Apache®, Apache Kafka® and Kafka® are either registered trademarks or trademarks of the Apache Software Foundation in the United States and/or other countries. Brokerium is not affiliated with, endorsed by, or sponsored by the Apache Software Foundation.