Skip to content

Delete Secret

Deprecated
secrets.delete(strsecret_id)
DELETE/v5/sgp/secrets/{secret_id}

Delete a secret from both the cloud provider and SGP metadata.

ParametersExpand Collapse
secret_id: str

Delete Secret

import os
from scale_gp_beta import SGPClient

client = SGPClient(
    api_key=os.environ.get("SGP_API_KEY"),  # This is the default and can be omitted
)
client.secrets.delete(
    "secret_id",
)
Returns Examples