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

# Delete Partner

> Delete a partnership

## Authentication

<CodeGroup>
  ```bash cURL theme={null}
  curl -X DELETE "https://app.journeybee.io/api/v1/partnerships/{partnershipId}" \
    -H "Authorization: Bearer your-api-key-uuid" \
    -H "Content-Type: application/json"
  ```

  ```javascript JavaScript theme={null}
  const response = await fetch('https://app.journeybee.io/api/v1/partnerships/{partnershipId}', {
    method: 'DELETE',
    headers: {
      'Authorization': 'Bearer your-api-key-uuid',
      'Content-Type': 'application/json'
    }
  });
  ```
</CodeGroup>

## Path Parameters

<ParamField path="partnershipId" type="number" required>
  The unique identifier of the company partnership to delete
</ParamField>

## Response Schema

The API returns a `204 No Content` status code on successful deletion with no response body.

## Example Request

<CodeGroup>
  ```bash cURL theme={null}
  curl -X DELETE "https://app.journeybee.io/api/v1/companies/123/partnerships/789" \
    -H "Authorization: Bearer jb_api_1234567890abcdef" \
    -H "Content-Type: application/json"
  ```

  ```javascript JavaScript theme={null}
  const response = await fetch('https://app.journeybee.io/api/v1/companies/123/partnerships/789', {
    method: 'DELETE',
    headers: {
      'Authorization': 'Bearer jb_api_1234567890abcdef',
      'Content-Type': 'application/json'
    }
  });

  if (response.ok) {
    console.log('Partnership deleted successfully');
  }
  ```
</CodeGroup>

## Example Response

<ResponseExample>
  ```json 204 No Content theme={null}
  (No response body)
  ```
</ResponseExample>

## Error Responses

<ResponseExample>
  ```json 401 Unauthorized theme={null}
  {
    "error": "Invalid API key or insufficient permissions"
  }
  ```
</ResponseExample>

<ResponseExample>
  ```json 403 Forbidden theme={null}
  {
    "error": "Write access required for this operation"
  }
  ```
</ResponseExample>

<ResponseExample>
  ```json 404 Not Found theme={null}
  {
    "error": "Partnership not found or already deleted"
  }
  ```
</ResponseExample>

<ResponseExample>
  ```json 400 Bad Request theme={null}
  {
    "error": "Cannot delete partnership with active leads or deals"
  }
  ```
</ResponseExample>

## Notes

* Requires API key with `write_access` permission
* Partner company is notified of partnership termination
