Skip to content

Delete Secret

Deprecated
client.secrets.delete(stringsecretID, RequestOptionsoptions?): void
DELETE/v5/sgp/secrets/{secret_id}

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

ParametersExpand Collapse
secretID: string

Delete Secret

import SGPClient from 'scale-gp';

const client = new SGPClient({
  accountID: 'My Account ID',
  apiKey: process.env['SGP_API_KEY'], // This is the default and can be omitted
});

await client.secrets.delete('secret_id');
Returns Examples