cURL
curl --request DELETE \ --url https://app.infisical.com/api/v3/secrets/batch/raw \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --data '{ "projectSlug": "<string>", "environment": "<string>", "secretPath": "/", "secrets": [ { "secretKey": "<string>" } ] }'
{ "secrets": [ { "id": "<string>", "_id": "<string>", "workspace": "<string>", "environment": "<string>", "version": 123, "type": "<string>", "secretKey": "<string>", "secretValue": "<string>", "secretComment": "<string>" } ] }
Delete many secrets
An access token in Infisical
The slug of the project to delete the secret in.
The slug of the environment where the secret is located.
1
Show child attributes
The path of the secret.
Default Response
Was this page helpful?