> For the complete documentation index, see [llms.txt](https://cortex-docs.paloaltonetworks.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://cortex-docs.paloaltonetworks.com/cortex-xdr-agent/5.0/traps-agent-5.0-for-windows/uninstall-traps-agent-for-windows.md).

# Uninstall Traps Agent for Windows

Use this workflow to uninstall Traps agent 5.0 on a Windows endpoint.

You can uninstall the Traps agent using any of the following methods on a Windows endpoint:

* **Uninstall from the Traps management service**
* [Manually Uninstall the Traps Agent for Windows](#UUID-94743cdb-24e3-ccba-9fbe-bf94eb558ba7_id183HK0SK0O4)
* [Uninstall the Traps Agent for Windows Using Msiexec](#UUID-94743cdb-24e3-ccba-9fbe-bf94eb558ba7_id183HK0T0302)

After you uninstall the agent, the endpoint is no longer protected by the Security policy of your company and the license returns to the pool of available licenses.

#### Manually Uninstall the Traps Agent for Windows

Use the following workflow to manually uninstall Traps.

1. Select Start → Control Panel → (Programs) → **Programs and Features**.
2. Select **Traps** from the list and then **Uninstall**.
3. When prompted to continue uninstalling, click **Yes** and acknowledge any notifications.
4. Enter the uninstall password and click **Next**.

#### Uninstall the Traps Agent for Windows Using Msiexec

Use the following workflow to uninstall Traps using Msiexec.

1. Use one of the following options to open a command prompt as an administrator:
   * Select Start → All Programs → **Accessories**. Then right-click **Command prompt** and **Run as administrator**.
   * Select **Start**. In the **Start Search** box, type **cmd**. Then, to open the command prompt as an administrator, press **CTRL**+**SHIFT**+**ENTER**.
2. Run the **`msiexec`** command followed by one or more of the following options or properties:

   * Uninstall and logging options:

     * **`/x<installpath>\<installerfilename>.msi`**—Uninstall a package.
     * **`/l*v <logpath>\<logfilename>.txt`**—Log verbose output to a file.

     For a full list of Msiexec parameters, see <https://docs.microsoft.com/en-us/windows/desktop/Msi/command-line-options>
   * Public properties:
     * **`UNINSTALL_PASSWORD=<uninstallpassword>`**—Specify the administrator password. You must specify the **`UNINSTALL_PASSWORD`** property to successfully uninstall a package.

   For example, to uninstall Traps using the traps.msi installer with the specified password and log verbose output to a file called uninstallLogFile.txt, enter the following command:

   ```screen
   C:\Users\username>msiexec
   /x c:\install\traps.msi /l*v c:\install\uninstallLogFile.txt UNINSTALL_PASSWORD=[palo@lt0]
                     
   ```


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://cortex-docs.paloaltonetworks.com/cortex-xdr-agent/5.0/traps-agent-5.0-for-windows/uninstall-traps-agent-for-windows.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
