---
name: azion-how-to-uninstall-orchestrator-agent
description: >-
  Uninstall Azion Orchestrator Agent from a device and delete its edge node with Azion Console or API v3.
---

# How to uninstall Orchestrator Agent

> Platform versions: this page applies to API v3.x only, not to API v4.x.
> Equivalent page for API v4.x: [How to uninstall Orchestrator Agent](/en/documentation/guides/application-development/automation/uninstall-agent.md)
> Release stage: Deprecated.

## Uninstalling agent

To uninstall Azion Orchestrator Agent:

1. Access your device from which you want to remove the agent.
2. Open the terminal and go to the folder where the agent is installed.
3. Run:

```bash
sudo ./edge-orchestrator uninstall 
```

Output:

```bash
Orchestrator was uninstalled successfully
```

From this moment on, your node won't receive updates anymore.

> **Note**
>
> Uninstalling the agent from your device doesn't remove the node from the list of nodes. To complete the process, you need to delete your node from the list of available edge nodes.

---

## Deleting edge node

> **Caution**
>
> Once an edge node is deleted, it can't be recovered.

### Console

1. Access [Azion Console](https://console.azion.com/) > **Edge Nodes**.
2. Find the edge node you wish to remove.
3. Select the three dots icon and select **Delete**.
4. Confirm the deletion.

### API

1. Run the following `GET` request in your terminal, replacing `[TOKEN VALUE]` with your [personal token](/en/documentation/guides/platform/account-and-billing/personal-tokens/) and retrieve the edge node ID you wish to delete:

```bash
curl --location 'https://api.azionapi.net/edge_nodes/' \
--header 'Accept: application/json; version=3' \
--header 'Authorization: Token [TOKEN VALUE]'
```

2. Run the following `DELETE` request in your terminal, replacing `[TOKEN VALUE]` with your [personal token](/en/documentation/guides/platform/account-and-billing/personal-tokens/) and `:id` with the edge node ID:

```bash
curl --location --request DELETE 'https://api.azionapi.net/edge_nodes/:id' \
--header 'Accept: application/json; version=3' \
--header 'Authorization: Token [TOKEN VALUE]'
```

> **Tip**
>
> Check the [Azion API documentation](https://api.azion.com/v3) and the [OpenAPI specification](https://github.com/aziontech/azionapi-openapi/) to know more about all features available via API.
