---
title: "Lists the deleted keys in the specified vault."
method: GET
path: "/deletedkeys"
tags: ["DeletedKeys"]
---

# Lists the deleted keys in the specified vault.

`GET /deletedkeys`

Retrieves a list of the keys in the Key Vault as JSON Web Key structures that contain the public part of a deleted key. This operation includes deletion-specific information. The Get Deleted Keys operation is applicable for vaults enabled for soft-delete. While the operation can be invoked on any vault, it will return an error if invoked on a non soft-delete enabled vault. This operation requires the keys/list permission.

## Query parameters

- `maxresults` integer
- `api-version` string, required

## Response `200`

A response message containing a list of deleted keys in the vault along with a link to the next page of deleted keys.

- DeletedKeyListResult — A list of keys that have been deleted in this vault.
  - `value` DeletedKeyItem[] — A response message containing a list of deleted keys in the vault along with a link to the next page of deleted keys
    - `kid` string — Key identifier.
    - `attributes` KeyAttributes — The object attributes managed by the KeyVault service.
      - `enabled` boolean — Determines whether the object is enabled.
      - `nbf` integer — Not before date in UTC.
      - `exp` integer — Expiry date in UTC.
      - `created` integer — Creation time in UTC.
      - `updated` integer — Last updated time in UTC.
    - `tags` object — Application specific metadata in the form of key-value pairs.
    - `managed` boolean — True if the key's lifetime is managed by key vault. If this is a key backing a certificate, then managed will be true.
  - `nextLink` string — The URL to get the next set of deleted keys.

## Other responses

- `default` — Key Vault error response describing why the operation failed.

---

[API](https://skmtc.net/azure/apis/keyvaultclient.md) · [All operations](https://skmtc.net/azure/apis/keyvaultclient/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/azure/keyvaultclient/revisions/1f612999ec40/schema)
