---
title: SQL-035: US_POLICY_UNIT delete
summary: US_POLICY_UNIT delete used by clsPolicyUnit.
status: draft
owner: SAIF
last_reviewed: 2026-07-24
library: SAIF.Business.UnitStat
reference_type: package
---

# SQL-035: US_POLICY_UNIT delete

This SQL statement implements the `US_POLICY_UNIT delete` data-access path for `clsPolicyUnit` in `SAIF.Business.UnitStat`. It participates in the `delete` lifecycle handled by `BeforeDelete`.

## Classification

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

## Parameters

| Parameter | Direction | Type | Max length | Description |
| --- | --- | --- | --- | --- |
| `:PolicyUnitSeqNum` | Input | Decimal/SmartDecimal | N/A | Policy unit primary key / parent foreign key. |

## Tables

| Table | Access | Columns used |
| --- | --- | --- |
| [US_POLICY_UNIT](../database-tables.md#us-policy-unit) | DELETE | See sample SQL |

## Sample SQL

```sql

Delete US_POLICY_UNIT

Where US_POLICY_UNIT.US_POLICY_UNIT_SEQ_NUM = :PolicyUnitSeqNum

```

## Operations and processes

- [Policy unit CRUD](../operations/policy-unit-crud.md)

## Business rules

- [BR-US-020: Database contention on update or delete is detected by checking RowsAffected <> 1](../business-rules.md#br-us-020-database-contention-on-update-or-delete-is-detected-by-checking-rowsaffected-1)

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

## Sources

- `Business\SAIF.Business.UnitStat\clsPolicyUnit.vb`
