## DeleteSecret `client.secrets.delete(SecretDeleteParamsbody, RequestOptionsoptions?): SecretDeleteResponse` **post** `/gitpod.v1.SecretService/DeleteSecret` Deletes a secret permanently. Use this method to: - Remove unused secrets - Clean up old credentials ### Examples - Delete secret: Permanently removes a secret. ```yaml secretId: "d2c94c27-3b76-4a42-b88c-95a85e392c68" ``` ### Parameters - `body: SecretDeleteParams` - `secretId?: string` ### Returns - `SecretDeleteResponse = unknown` ### Example ```typescript import Gitpod from '@gitpod/sdk'; const client = new Gitpod({ bearerToken: process.env['GITPOD_API_KEY'], // This is the default and can be omitted }); const secret = await client.secrets.delete({ secretId: 'd2c94c27-3b76-4a42-b88c-95a85e392c68' }); console.log(secret); ``` #### Response ```json {} ```