---
title: "Delete a doorlock key."
method: DELETE
path: "/doorlock/v1/keys/{id}"
tags: ["Door Locks"]
---

# Delete a doorlock key.

`DELETE /doorlock/v1/keys/{id}`

## Request

- Base URL: `https://api.cloudbeds.com`
- URL: `https://api.cloudbeds.com/doorlock/v1/keys/{id}`
- Auth: OAuth 2
  - Authorization code: `https://api.cloudbeds.com/auth/oauth/authorize`
  - Token URL: `https://api.cloudbeds.com/auth/oauth/token` scopes: `delete:doorLockKey`

## Path parameters

- `id` string, required

## Headers

- `x-property-id` string, required

## Response `204`

A key that was just created.

- unknown

## Other responses

- `400`: Bad Request response
- `404`: Not found response
- `500`: Internal server error

---

[API](https://skmtc.dev/cloudbeds/apis/cloudbeds-api-v2.md) - [All operations](https://skmtc.dev/cloudbeds/apis/cloudbeds-api-v2/llms.txt) - [OpenAPI document](https://skmtc.dev/cloudbeds/apis/cloudbeds-api-v2/revisions/69bffac143cc?raw)
