Uninstall Windows agents

To uninstall the agent from a Windows node, use the Windows Add or Remove Programs interface or the command line.

Uninstalling the agent from a Windows node removes the Puppet program directory, the agent service, and all related registry keys. The data directory remains intact, including all SSL keys. To completely remove the Puppet agent from the system, you must also manually delete the data directory.
  1. Uninstall the agent:
    • Use the Windows Add or Remove Programs interface.
    • Use the command line if you have the original .msi file or know the installed MSI's product code. For example: msiexec /qn /norestart /x [puppet.msi|<PRODUCT_CODE>]
  2. Optional: If you want to reinstall the agent on the node later, make sure you remove the node's agent certificate from the primary server. To do this, on the primary server run: puppetserver ca clean --certname <AGENT_CERT_NAME>
What to do next
If you want to remove the node from your inventory and use the node's license on another node, you must purge the node, as explained in Remove agent nodes.