Delete a host
You can use the Developer Tools console or the delete-host command in the AWS Command Line Interface (AWS CLI) to delete a host.
Delete a host (console)
To delete a host
-
Open the Developer Tools console at https://console.aws.amazon.com/codesuite/settings/connections
. -
Choose the Hosts tab. In Name, choose the name of the host you want to delete.
-
Choose Delete.
-
Enter
delete
in the field to confirm, and then choose Delete.Important
This action cannot be undone.
Delete a host (CLI)
You can use the AWS Command Line Interface (AWS CLI) to delete a host.
To do this, use the delete-host command.
Important
Before you can delete a host, you must delete all connections associated with the host.
After you run the command, the host is deleted. No confirmation dialog box is displayed.
To delete a host
-
Open a terminal (Linux, macOS, or Unix) or command prompt (Windows). Use the AWS CLI to run the delete-host command, specifying the Amazon Resource Name (ARN) of the host that you want to delete.
aws codeconnections delete-host --host-arn "arn:aws:codeconnections:us-west-2:
account_id
:host/My-Host-28aef605"This command returns nothing.