DELETE
/
api
/
v1
/
dynamic-secrets
/
{name}
curl --request DELETE \
  --url https://us.infisical.com/api/v1/dynamic-secrets/{name} \
  --header 'Content-Type: application/json' \
  --data '{
  "projectSlug": "<string>",
  "path": "/",
  "environmentSlug": "<string>",
  "isForced": false
}'
{
  "dynamicSecret": {
    "id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
    "name": "<string>",
    "version": 123,
    "type": "<string>",
    "defaultTTL": "<string>",
    "maxTTL": "<string>",
    "folderId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
    "status": "<string>",
    "statusDetails": "<string>",
    "createdAt": "2023-11-07T05:31:56Z",
    "updatedAt": "2023-11-07T05:31:56Z"
  }
}

Path Parameters

name
string
required

The name of the dynamic secret.

Body

application/json
projectSlug
string
required

The slug of the project to delete dynamic secret in.

Minimum length: 1
environmentSlug
string
required

The slug of the environment to delete the dynamic secret in.

Minimum length: 1
path
string
default:
/

The path to delete the dynamic secret in.

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

200
application/json
Default Response
dynamicSecret
object
required

Was this page helpful?