> ## 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 CSS Record

> Delete a CSS record from your PCI Booking account.

<Card title="Stylesheets Guide" icon="book" href="/account-setup/stylesheets">
  Customize the appearance of hosted forms
</Card>

Deletes the specified CSS resource from your account.

## Error Responses

| HTTP Status | Error Code | Description                                                                      |
| ----------- | ---------- | -------------------------------------------------------------------------------- |
| 401         | -1003      | Not authenticated. The API key is missing or invalid.                            |
| 403         | -1003      | Not authorized. The API key does not have the `CanConfigureSettings` permission. |
| 404         |            | Resource not found. No CSS record exists with the specified `ResourceName`.      |

## Parameter Constraints

| Parameter      | Constraint                                                            |
| -------------- | --------------------------------------------------------------------- |
| `ResourceName` | Required. Must contain only alphanumeric characters (`[a-zA-Z0-9]+`). |

## 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="ResourceName" type="string" required>
  The resource name assigned to this CSS record. You can view the list of CSS records in the user's site or [retrieve the full list](/api-reference/general/list-css-records) via the API.
</ParamField>

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

  console.log(response.status); // 204 on success
  ```

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

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

  print(response.status_code)  # 204 on success
  ```
</RequestExample>

## Response

<ResponseExample>
  ```json 204 theme={null}
  // Empty body. Returned on successful deletion.
  ```

  ```json 404 theme={null}
  // Empty body. The specified ResourceName does not exist in your account.
  ```

  ```json 401 theme={null}
  {
      "code": -1003,
      "message": "Not authorized to access this resource",
      "moreInfo": "Bad or missing authorization data, expected APIKEY",
      "errorList": null
  }
  ```
</ResponseExample>
