Skip to main content
client.dynamic_secrets.leases.revoke() deletes a lease and revokes its credentials in the external system, such as by deleting the database user.

Parameters

str
required
The ID of the lease.
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 lease in Infisical even if Infisical can’t revoke the credentials in the external system. If you force a revoke, the credentials can stay valid in the external system.

Returns

DynamicSecretLease
The revoked lease.