Hi @shaycohen11
Here’s how you delete hosts using Hammer CLI:
# get a list of hosts
$ hammer host list
# delete your host based on its ID or host name
$ hammer host delete --id _My_Host_ID_ --organization-id _My_Organization_ID_ --location-id _My_Location_ID_
$ hammer host delete --name "my-host.example.com" --organization-id _My_Organization_ID_ --location-id _My_Location_ID_
If you are unsure about any Hammer commands, you can add --help to every command from hammer --help all the way to hammer host delete --help.
I’ll make sure this ends up in the documentation and extends Removing a Host from Foreman in Managing Hosts.