---
title: "Delete a list of doorlock keys."
method: DELETE
path: "/doorlock/v1/keys"
tags: ["Door Locks"]
---

# Delete a list of doorlock keys.

`DELETE /doorlock/v1/keys`

## Request

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

## Query parameters

- `keyIds` string, required

## Headers

- `x-property-id` string, required

## Response `204`

Keys were cancelled.

- unknown

## Other responses

- `207`: Per-key invalidation results. Opt-in; by default this endpoint answers 204.
- `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)
