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

The AWS Documentation website is getting a new look!
Try it now and let us know what you think. Switch to the new look >>

You can return to the original look by selecting English in the language selector above.

Uninstall the CodeDeploy Agent

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

Uninstall the CodeDeploy Agent from Amazon Linux or RHEL

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

sudo yum erase codedeploy-agent

Uninstall the CodeDeploy Agent from Ubuntu Server

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

sudo dpkg --purge codedeploy-agent

Uninstall the CodeDeploy Agent from Windows Server

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

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

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