## Delete Credential

`client.credentials.delete(stringcredentialID, RequestOptionsoptions?): CredentialDeleteResponse`

**delete** `/v5/credentials/{credential_id}`

Permanently delete a credential and all its associated data.

### Parameters

- `credentialID: string`

### Returns

- `CredentialDeleteResponse`

  - `id: string`

  - `deleted: boolean`

  - `object?: string`

### Example

```typescript
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
});

const credential = await client.credentials.delete('credential_id');

console.log(credential.id);
```

#### Response

```json
{
  "id": "id",
  "deleted": true,
  "object": "object"
}
```
