> For the complete documentation index, see [llms.txt](https://kb.mago.io/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://kb.mago.io/mago-stage/admin-portal/mago-remote-agent/delete-an-agent.md). Agents can also search and read this documentation through its [MCP server](https://kb.mago.io/~gitbook/mcp).

# Delete an Agent

Delete an Agent when its registration and remote-access configuration are no longer required by the selected organization.

Deleting an Agent registration is permanent.

### Before deleting an Agent

Confirm that:

* The correct organization is selected.
* The correct Agent is open.
* No active remote session depends on the Agent.
* Shared users no longer require access.
* Any required name, tags, or configuration details have been recorded.
* The associated Remote Agent license seat has been identified.

{% hint style="danger" %}
Deleting an Agent removes its portal registration and shared access. The Agent must be activated again before it can be managed or accessed through Mago Stage.
{% endhint %}

### Delete the Agent

1. In the Administration Portal, select **Agents**.
2. Open the required Agent.
3. Select **Software**.
4. Scroll to **Danger Zone**.
5. Select **Delete**.
6. Review the confirmation.
7. Select **Delete** again to confirm.

The Agent is removed from the selected organization.

<figure><img src="https://2978719120-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-M2FbpP2hYI1Myy7hMs_%2Fuploads%2Fuqoelxwy9f04cQYwoj3H%2Fimage.png?alt=media&amp;token=a1ec8f18-c64e-462c-8d43-2ba67c49d0b1" alt=""><figcaption></figcaption></figure>

### After deletion

1. Confirm that the Agent no longer appears under **Agents**.
2. Open **Licenses**.
3. Select the **Agents** license view.
4. Confirm that the corresponding Remote Agent seat is available.
5. Confirm that the Agent no longer appears in any relevant sharing or assignment lists.

Deleting the registration does not uninstall the Mago Remote Agent software from the computer.

{% hint style="warning" %}
License-seat release behavior can depend on the license and deployment configuration. Verify the available seat under **Licenses** before assigning it to another Agent.
{% endhint %}
