cloudtask-destroy-workers [ -opts ] ( path/to/list-of-ips | - )
Destroy and unregister cloud workers from the Hub and remove their addresses from text file listing.
path/to/list-of-ips := the file location of a text file containing a list of IP addresses of workers to destroy. IPs of workers that are sucessfully destroyed will be removed from this list.
If '-' is specified, read list of IPs from stdin.
--hub-apikey: Hub APIKEY
Environment: HUB_APIKEY | CLOUDTASK_HUB_APIKEY
0 destroyed all workers
1 fatal error
2 couldn't destroy some workers
cat workers-ips | cloudtask-destroy-workers -