> For the complete documentation index, see [llms.txt](https://docs.cybaops.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.cybaops.com/support/uninstalling-an-agent.md).

# Uninstalling an Agent

If you are going to be getting rid of an asset, you will want to uninstall either Agent that is installed to the device to stop it pulling through to your asset manager after you have removed it.

<details>

<summary><mark style="color:$primary;"><strong>Uninstalling CybaAgent</strong></mark></summary>

Open a command line prompt as an administrator. And run the following line.

`C:\Program Files\CybaVerse\Cybaagentd.exe -u`

You will be able to confirm uninstallation by viewing the last time the device was viewed by the CybaAgent in the asset source view. In asset source, under CybaOps click view.

<figure><picture><source srcset="/files/UMc54sRHOWnfGhgx8eV8" media="(prefers-color-scheme: dark)"><img src="/files/2ZYcPJUFiOL5Rsox3iQ5" alt=""></picture><figcaption></figcaption></figure>

Once this is over 30 days out of date, you will be able to delete the asset using the three dots on the asset detail page and clicking delete asset.

</details>

<details>

<summary><mark style="color:$primary;"><strong>Uninstalling Qualys</strong></mark></summary>

To uninstall Qualys you will need to open a command line and execute the following command using administration privileges.

**For .exe and/or MSI-based installer**: `Uninstall.exe Uninstall=True`

**For MSI based installer**: `Msiexec.exe /x CloudAgent_x86.msi`&#x20;

You will be able to confirm uninstallation by viewing the last time the device was scanned by Qualys in the asset source view. In asset source, under CybaOps click view.

<figure><picture><source srcset="/files/UMc54sRHOWnfGhgx8eV8" media="(prefers-color-scheme: dark)"><img src="/files/2ZYcPJUFiOL5Rsox3iQ5" alt=""></picture><figcaption></figcaption></figure>

Once opening this view, you can see the last time Qualys was able to view the devices is displayed in the Vm-Qualys field.

<figure><picture><source srcset="/files/a1BiQiRrEMXGSvGZZR2O" media="(prefers-color-scheme: dark)"><img src="/files/Yvrr536OzgeRbgdTLnHa" alt=""></picture><figcaption></figcaption></figure>

Once this is over 30 days out of date, you will be able to delete the asset using the three dots on the asset detail page and clicking delete asset.

</details>

Uninstalling an agent doesn't remove it from the Asset Manager - it just removes the agent source.&#x20;

{% hint style="info" %}
If you want to remove an asset from the asset manager, you should uninstall the agent and then navigate to the asset in the Asset Manager, click the three dots and then Delete. (See below)
{% endhint %}

<figure><picture><source srcset="/files/My8w2hx3Jdeslx2bHQcx" media="(prefers-color-scheme: dark)"><img src="/files/KAdWfn0P2DUSwmKUG6xZ" alt=""></picture><figcaption></figcaption></figure>


---

# 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 dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
GET https://docs.cybaops.com/support/uninstalling-an-agent.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

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.
