---
title: "Revokes all secrets (via a lease ID prefix) or tokens (via the tokens' path property) generated under a given prefix immediately."
method: POST
path: "/sys/leases/revoke-prefix/{prefix}"
tags: ["system"]
---

# Revokes all secrets (via a lease ID prefix) or tokens (via the tokens' path property) generated under a given prefix immediately.

`POST /sys/leases/revoke-prefix/{prefix}`

## Request body

- SystemLeasesRevokePrefixRequest
  - `sync` boolean — Whether or not to perform the revocation synchronously

## Response `200`

OK

---

[API](https://skmtc.net/lensesio/apis/hashicorp-vault-api.md) · [All operations](https://skmtc.net/lensesio/apis/hashicorp-vault-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/lensesio/hashicorp-vault-api/revisions/bd8194de0697/schema)
