Skip to main content
client.secrets.delete_secret_by_name() 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.

Parameters

str
required
The name of the secret.
str
The ID of the project. Pass project_id or project_slug. If you pass both, the SDK uses project_id.
str
The slug of the project.
str
required
The slug of the environment, such as dev.
str
required
The path of the folder, such as / or /backend.

Returns

BaseSecret
The deleted secret, with the values it had before the delete.