# Delete A Node And Uninstall Pmk Packages

Deleting a node from PMK involves de-authorizing the node so that the PMK management plane is not aware of the node anymore and then uninstalling all PMK components from it. Note that the node must not be part of any PMK cluster before it can be deleted from PMK.

Follow these steps to delete a node from PMK and uninstall all PMK packages from it.

You must be a PMK administrator to perform this operation

1. Make sure that the node is not part of any PMK cluster. You can verify this by logging into PMK UI, navigating to Infrastructure > Nodes tab, locating the node in the nodes table and looking at the 'Cluster' column value for the node.
2. If the node is part of a PMK cluster, follow instructions here to [detach node from the cluster](https://github.com/platform9/pcd-docs-gitbook/blob/main/kubernetes/detach-node-from-cluster/README.md)
3. Once the node is detached, follow these steps to [deauthorize the node from PMK](https://github.com/platform9/pcd-docs-gitbook/blob/main/kubernetes/deauthorize-node/README.md)
4. Finally, follow these steps to [uninstall Platform9 hostagent](https://github.com/platform9/pcd-docs-gitbook/blob/main/kubernetes/platform9-hostagent/README.md#uninstall-hostagent)

Note that the steps above do not remove any business critical data from your node. Only PMK metadata is removed and any software packages installed by PMK are uninstalled as part of this process.

Your node is fully removed from PMK at this point.


---

# 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/delete-a-node-and-uninstall-pmk-packages.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.
