DELETE
/
api
/
v1
/
dynamic-secrets
/
leases
/
{leaseId}
cURL
curl --request DELETE \
  --url https://us.infisical.com/api/v1/dynamic-secrets/leases/{leaseId} \
  --header 'Content-Type: application/json' \
  --data '{
  "projectSlug": "<string>",
  "path": "/",
  "environmentSlug": "<string>",
  "isForced": false
}'
{
  "lease": {
    "id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
    "version": 123,
    "externalEntityId": "<string>",
    "expireAt": "2023-11-07T05:31:56Z",
    "status": "<string>",
    "statusDetails": "<string>",
    "dynamicSecretId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
    "createdAt": "2023-11-07T05:31:56Z",
    "updatedAt": "2023-11-07T05:31:56Z",
    "config": "<any>"
  }
}

Path Parameters

leaseId
string
required

The ID of the dynamic secret lease.

Minimum length: 1

Body

application/json
projectSlug
string
required

The slug of the project of the dynamic secret in.

Minimum length: 1
environmentSlug
string
required

The slug of the environment of the dynamic secret in.

Minimum length: 1
path
string
default:/

The path of the dynamic secret in.

Minimum length: 1
isForced
boolean
default:false

A boolean flag to delete the the dynamic secret from Infisical without trying to remove it from external provider. Used when the dynamic secret got modified externally.

Response

Default Response

lease
object
required