---
title: "SQL-145: Delete cancellation reason"
summary: "Delete cancellation reason"
status: draft
owner: Technical Writer
last_reviewed: 2026-07-31
library: SAIF.Business.Policy.Core
reference_type: package
---

# SQL-145: Delete cancellation reason

Delete cancellation reason in the context of `clsCancellationReason`.

## Classification

| Field | Value |
| --- | --- |
| **SQL ID** | SQL-145 |
| **Operation type** | Delete |
| **Execution method** | IDataRequest.SQLStatement (CommandType.Text) |
| **Database** | Oracle |
| **Schema** | [unqualified]** |
| **Command type** | Text |
| **Business object** | `clsCancellationReason` |
| **Criteria property** | `DeleteSQL` |
| **Lifecycle method** | `BeforeDelete / AfterDelete` |

## Parameters

| Parameter | Direction | Type | Max length | Description |
| --- | --- | --- | --- | --- |
| `:Code` | Input | bound from `MyCriteria.Code` | 5 | Bound in `clsCancellationReason.BeforeDelete` (line 473) |

## Tables

| Table | Access | Columns used |
| --- | --- | --- |
| [CANCEL_REASON_CODE](../database-tables.md#cancel_reason_code) | DELETE | See sample SQL |

## Sample SQL

```sql
DELETE
  CANCEL_REASON_CODE
WHERE
  CANCEL_REASON_CODE.CODE = :Code
```

## Operations and processes
- [Record a cancellation reason override](../operations/record-a-cancellation-reason-override.md)

## Business rules
- [BR-033: New sequence values for writable entities are obtained](../business-rules.md#br-033-new-sequence-values-for-writable-entities-are-obtained)

> **Note:** Statements marked with * were inferred from code structure, naming conventions, or
> contextual evidence where direct confirmation was not available in source artifacts. Statements
> marked with ** could not be confirmed; treat as unknown until verified.

## Sources
- `Business\SAIF.Business.Policy.Core\clsCancellationReason.vb`
