---
title: "Delete Authorized Device"
method: DELETE
path: "/api/v1/devices/{device_id}"
tags: ["authorized_devices"]
---

# Delete Authorized Device

`DELETE /api/v1/devices/{device_id}`

Deletes a specific OAuth2 authorized device using its unique ID.

Args:
    device_id: The ID of the OAuth2 authorized device to delete.
    auth_context: The current auth context.

Raises:
    KeyError: If the device with the given ID does not exist or does not
        belong to the current user.

## Path parameters

- `device_id` string, uuid, required

## Response `200`

Successful Response

- unknown

## Other responses

- `401` — Unauthorized
- `404` — Not Found
- `422` — Unprocessable Entity

---

[API](https://skmtc.net/zenml-io/apis/zenml-2.md) · [All operations](https://skmtc.net/zenml-io/apis/zenml-2/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/zenml-io/zenml-2/versions/febb01b8bce3/schema)
