Skip to main content
client.dynamic_secrets.delete() deletes a dynamic secret. It also deletes the dynamic secret’s leases and revokes their credentials.

Parameters

str
required
The name of the dynamic secret.
str
required
The slug of the project.
str
required
The slug of the environment, such as dev.
str
default:"/"
The path of the folder that the dynamic secret is in.
bool
default:"False"
Whether to delete the dynamic secret without revoking the credentials of its leases. If True, the credentials stay valid in the external system.

Returns

DynamicSecret
The deleted dynamic secret.