> ## Documentation Index
> Fetch the complete documentation index at: https://docs.clustr-ai.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Delete Client Rule

> Remove one CRM's client rule

Removes the client rule for one CRM. The companies it marked leave your
[client list](https://docs.clustr-ai.com/client-companies.md); companies added manually or by CSV stay. A pull
that was already running cannot bring them back.

## Errors

| Status | Code | When |
| - | - | - |
| 404 | `CRM_NOT_CONNECTED` | That CRM is not connected for this workspace |
| 502 | `CLIENT_COMPANIES_UNAVAILABLE` | The rule was removed but its companies could not be cleared; call again |

```bash cURL theme={null}
curl -X DELETE https://api.clustr-ai.com/api/public/client-companies/rule/salesforce \
  -H "Authorization: Bearer YOUR_API_KEY"
```

```json 200 theme={null}
{
  "success": true,
  "data": { "deleted": true }
}
```


## OpenAPI

````yaml DELETE /client-companies/rule/{provider}
openapi: 3.1.0
info:
  title: Clustr Public API
  description: >
    Programmatic access to your Clustr network: import connectors, search warm
    intros (opportunities), and manage target accounts.


    ## Authentication

    All endpoints require a Bearer token (API key) in the `Authorization`
    header.


    ```

    Authorization: Bearer <your_api_key>

    ```


    API keys can be created and managed from the [API settings
    page](https://app.clustr-ai.com/api).
  version: '1.0'
  contact:
    name: Clustr Support
    url: https://clustr-ai.com
servers:
  - url: https://api.clustr-ai.com/api/public
    description: Production
security:
  - BearerAuth: []
paths:
  /client-companies/rule/{provider}:
    parameters:
      - $ref: '#/components/parameters/ClientRuleProvider'
    delete:
      tags:
        - Client Companies
      summary: Delete Client Rule
      description: |
        Remove one CRM's client rule. The companies it marked leave the client
        list; manual and CSV rows stay.
      operationId: deleteClientRule
      responses:
        '200':
          description: Removed
          content:
            application/json:
              schema:
                type: object
                properties:
                  success:
                    type: boolean
                    example: true
                  data:
                    type: object
                    properties:
                      deleted:
                        type: boolean
                        example: true
        '401':
          description: Invalid or missing API key
        '404':
          description: >-
            The CRM is not connected (`CRM_NOT_CONNECTED`), or the provider is
            unknown
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
        '502':
          description: >-
            The rule was removed but its companies could not be cleared
            (`CLIENT_COMPANIES_UNAVAILABLE`); try again
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
components:
  parameters:
    ClientRuleProvider:
      name: provider
      in: path
      required: true
      schema:
        type: string
        enum:
          - hubspot
          - salesforce
          - attio
      description: >-
        The CRM whose client rule to use. It must be connected to your
        workspace.
  schemas:
    ErrorResponse:
      type: object
      required:
        - success
        - error
      properties:
        success:
          type: boolean
          example: false
        error:
          type: object
          properties:
            message:
              type: string
              example: Invalid request body
            code:
              type: string
              example: BAD_REQUEST
  securitySchemes:
    BearerAuth:
      type: http
      scheme: bearer
      description: The API key you created on the API settings page of the Clustr app.

````

This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.