Menu
AWS CodeDeploy
User Guide (API Version 2014-10-06)

Uninstall the AWS CodeDeploy Agent

You can remove the AWS CodeDeploy Agent from instances when it is no longer needed or when you want to perform a fresh installation.

Uninstall the AWS CodeDeploy Agent from Amazon Linux or RHEL

To uninstall the AWS CodeDeploy agent, sign in to the instance and run the following command:

Copy
sudo yum erase codedeploy-agent

Uninstall the AWS CodeDeploy Agent from Ubuntu Server

To uninstall the AWS CodeDeploy agent, sign in to the instance and run the following command:

Copy
sudo dpkg --purge codedeploy-agent

Uninstall the AWS CodeDeploy Agent from Windows Server

To uninstall the AWS CodeDeploy agent, sign in to the instance and run the following three commands, one at a time:

Copy
wmic
Copy
product where name="CodeDeploy Host Agent" call uninstall /nointeractive
Copy
exit

Alternatively, sign in to the instance, and in Control Panel, open Programs and Features, choose CodeDeploy Host Agent, and then choose Uninstall.