Skip to main content
client.secrets().deleteSecret() deletes a secret from a folder in an environment of a project. The machine identity needs a role in the project that can change secrets, such as Member. If the folder has an approval policy, Infisical opens a change request instead of deleting the secret, and returns the change request in approval.

Parameters

string
required
The name of the secret.
DeleteSecretOptions
required

Returns

DeleteSecretResponse