# Deauthorize Node

## Deauthorize Node

Nodes that are not attached to any Kubernetes cluster can be deauthorized from the Platform9 Managed Kubernetes UI. A node must be deauthorized to fully remove it from Platform9's management.

Follow the steps below to authorize a node:

1. Navigate to *Infrastructure* > *Nodes* tab.
2. Select the node to deauthorize.
3. Click Deauthorize from the table action bar. This opens a small window to confirm your choice.

<figure><img src="/files/2iHWFwAk4BrvmBlMtxob" alt=""><figcaption></figcaption></figure>

Once the node is deauthorized, users can then use the CLI decommission node command to complete remove all Platform9 packages from the node. This includes the Platform9 hostagent, and removes the node from Platform9's management plane.

{% hint style="warning" %}
**Deauthorize vs Decommission**

Deauthorizing a node WILL NOT detach the node from SaaS management plane UI. It will only be removed once the user uninstalls the hostagent. It should be noted that cleaning the Agent is a manual procedure, as documented on the [auto$](https://github.com/platform9/pcd-docs-gitbook/blob/main/kubernetes/platform9-hostagent/README.md) page.
{% endhint %}

For more information on accomplishing this task, visit the [auto$](https://github.com/platform9/pcd-docs-gitbook/blob/main/kubernetes/cli-decommission-node/README.md) page.

## Decommission Node

{% tabs %}
{% tab title="Bash" %}

```bash
pf9ctl decommission-node [flags]
```

{% endtab %}
{% endtabs %}

If a node is accidentally deauthorized, it may be reauthorized by clicking the ***Authorize*** button in the UI after it is selected.


---

# Agent Instructions: 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:

```
GET https://docs.platform9.com/managed-kubernetes/5.9/nodes/deauthorize-node.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
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.
