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
This endpoint requires you to disable end-to-end encryption. For more information, you should consult this note.
An access token in Infisical
Default Response
The response is of type object.
object
Was this page helpful?