# Uninstall the Access agent

Removing a computer from Blink has two sides: the agent on the computer, and the device record in the console. Do both.

## Remove the agent from the computer

1. On the computer, open Command Prompt or PowerShell **as administrator**.
2. Run:

   ```bat
   "C:\ProgramData\Blink\blink-agent.exe" --uninstall
   ```

The agent stops and removes the **IZT Blink Agent** service, tells your server it was uninstalled, and deletes the computer's device identity, so nothing left behind can restore unattended access. Blink's Safe Mode registration is removed, and the Windows setting Blink changed so it could send `Ctrl+Alt+Del` is put back (unless someone has changed it since).

You can run the same command from your management tool. It exits with code `0` on success and `1` on failure.

In the console the device now shows the status **uninstalled**.

:::note
If the computer cannot reach your server while you uninstall, the agent is still removed, but the server is not told. The device then simply shows **offline** until you delete it in the console.
:::

## Revoke or delete the device in the console

Open **Access**, select the device (see [Manage Access devices](/use/manage-devices/)), and use the **Danger zone** at the bottom of its details. You need the **Remove devices** permission:

- **Revoke** keeps the record but invalidates the device's credential, drops its connection and ends its open sessions. No enrollment key brings it back; only **Un-revoke** does. Use this when a computer is lost or stolen.
- **Delete** removes the device record entirely. The installed agent can no longer connect. Use this once the agent is uninstalled, or to enroll the computer again from scratch.

:::caution
Revoking or deleting a device in the console does not remove the agent from the computer. If the computer still exists, uninstall the agent there too.
:::

## Enrolling the computer again later

A computer whose agent reported its uninstall can be enrolled again by installing the agent with a key for the same device group, or a key with no group. See [Install the Access agent on Windows](/install/access-agent-windows/). If the enrollment is refused, delete the old device in the console first, or (when the device still shows as enrolled) use a key that allows re-enrollment.
