> ## Documentation Index
> Fetch the complete documentation index at: https://developers.pcibooking.net/llms.txt
> Use this file to discover all available pages before exploring further.

# Delete Payment Gateway Credentials

> Delete a stored set of payment gateway credentials.

<Card title="Gateway Credentials Guide" icon="book" href="/account-setup/gateway-credentials">
  Store and manage payment gateway credentials
</Card>

Permanently removes a stored set of payment gateway credentials from your account. Use this when you no longer need a particular gateway integration or want to rotate credentials by deleting the old set and storing a new one.

## Error Responses

| Code    | HTTP Status | Condition                                                    |
| ------- | ----------- | ------------------------------------------------------------ |
| `-1003` | `401`       | API key is missing or invalid, or user type is not `Booker`. |
| `-125`  | `400`       | Bad input data.                                              |

## Parameters

### Headers

<ParamField header="Authorization" type="string" required>
  Your API key prefixed with `APIKEY`. Example: `APIKEY your-api-key`. See the [Authentication guide](/getting-started/authentication).
</ParamField>

### Path Parameters

<ParamField path="credentialsId" type="string" required>
  The ID given to the credentials for the payment gateway when they were [stored in PCI Booking](/api-reference/process-cards/store-credentials).
</ParamField>

<RequestExample>
  ```javascript Node.js theme={null}
  const response = await fetch(
    'https://service.pcibooking.net/api/credentials/my-stripe-credentials',
    {
      method: 'DELETE',
      headers: {
        'Authorization': 'APIKEY your-api-key'
      }
    }
  );

  console.log(response.status);
  ```

  ```python Python theme={null}
  import requests

  response = requests.delete(
      'https://service.pcibooking.net/api/credentials/my-stripe-credentials',
      headers={
          'Authorization': 'APIKEY your-api-key'
      }
  )

  print(response.status_code)
  ```
</RequestExample>

## Response

<ResponseExample>
  ```text 200 theme={null}
  Credentials deleted successfully. No content returned.
  ```

  ```json 400 theme={null}
  {
      "code": -125,
      "message": "Bad input data",
      "moreInfo": "...",
      "errorList": null
  }
  ```
</ResponseExample>
