---
title: "SQL-084: clsCustomerContact"
summary: Delete statement for clsCustomerContact.
status: draft
owner: SAIF
last_reviewed: 2026-07-24
library: SAIF.Business.CustomerContact
reference_type: package
---

# SQL-084: clsCustomerContact

This statement supports `clsCustomerContact` by executing a delete operation against COMPANY_PERSON.

## Classification

| Field | Value |
| --- | --- |
| SQL ID | SQL-084 |
| Operation type | Delete |
| Execution method | Inline |
| Database | Oracle |
| Schema | `[unqualified]**` |
| Command type | Text |
| Business object | `clsCustomerContact` |
| Criteria property | DeleteSQL |
| Lifecycle method | BeforeDelete |

## Parameters

| Parameter | Direction | Type | Max length | Description |
| --- | --- | --- | --- | --- |
| `:CustomerID` | Input | Decimal | N/A | Customer primary key |
| `:ContactID` | Input | Decimal | N/A | Contact primary key |
| `:RelationshipCode` | Input | String | 5 | Customer-contact relationship code |

## Tables

| Table | Access | Columns used |
| --- | --- | --- |
| [COMPANY_PERSON](../database-tables.md#company-person) | DELETE | COMPANY_SEQ_NUM, PERSON_SEQ_NUM, RELATIONSHIP_CODE |

## Sample SQL

```sql
Delete COMPANY_PERSON Where COMPANY_PERSON.COMPANY_SEQ_NUM = :CustomerID AND COMPANY_PERSON.PERSON_SEQ_NUM = :ContactID AND COMPANY_PERSON.RELATIONSHIP_CODE = :RelationshipCode
```

## Operations and processes
- [Customer-contact relationship CRUD](../operations/customer-contact-relationship-crud.md)

> **Note:** Statements marked with `**` could not be confirmed; treat as unknown until verified.

## Sources
- `Business\SAIF.Business.CustomerContact\Customer\clsCustomerContact.vb`
