Skip to main content

Delete Secret

cc.delete_secret

#

Deletes a specific secret from the Covalent Cloud. Use this function to remove secrets that are no longer needed or should be updated.

Keyword Arguments

name (str)

The name of the secret to be deleted.

settings (Settings, optional)

Configuration settings for connecting to the Covalent Cloud. Defaults to None, which uses the default settings.

Returns

This function does not return any value but raises an error if the operation is unsuccessful.

Return Type

None

Examples

import covalent_cloud as cc

# Optionally, delete a secret if no longer needed
cc.delete_secret(name="MY_SECRET_NAME")
# Deletes the secret named "MY_SECRET_NAME".