# Remove Agents

> Remove PerformanceGuard agents from computers, and the prerequisites for doing so.

Source: https://docs.capaone.com/performanceguard/installation/install-performanceguard-agents/remove-agents/  
Product: PerformanceGuard — a separate CapaSystems product; do not apply this page to any other.

<font style="color: #404040;">It's easy to remove PerformanceGuard agents from computers.</font>  
<font style="color: #404040;">Prerequisites:</font>

- You must be logged in to the computer with local administrator rights.
- You must use the same .msi package that was used for the installation.
- If the agent was installed on a per-user basis, you must use the same login that was used for the installation. If you don't use the same login, the installer won't be able to find the software to remove.
- Components may be in use at the time of removal. If that's the case, a restart of the computer will be required after the removal has finished.

:::caution
You'll not be notified of this if you apply the */qn* (silent) flags when you run the *.msi*.
:::

<font style="color: #404040;">Remove the PerformanceGuard agent using the following command line:</font>

**PowerShell**

```powershell
msiexec /x XXXXX.msi
```

<font style="color: #404040;">Replace XXXXX.msi with the name of the agent installation file (note that names are different, depending on whether you use a 32-bit or a 64-bit agent installation file).</font>  
<font style="color: #404040;">Removal usually takes less than a minute.</font>

# **Silent Removal**

<font style="color: #404040;">If removing multiple agents you may want to keep the removal process completely transparent to the end users.</font>

<font style="color: #404040;">In that case, apply the /q (quiet) and /n (don't ask) parameters to the command line when removing:</font>

**PowerShell**

```powershell
msiexec /x XXXXX.msi /qn
```

<font style="color: #404040;">Replace XXXXX.msi with the name of the agent installation file (note that names are different, depending on whether you use a 32-bit or a 64-bit agent installation file).</font>
