---
title: "SQL-038: clsApplicationCode"
summary: Delete statement for clsApplicationCode.
status: draft
owner: SAIF
last_reviewed: 2026-07-24
library: SAIF.Business.Menu
reference_type: package
---

# SQL-038: clsApplicationCode

Deletes an existing application code record from `BUSONLINE_APPS_CODE`. Note: the SQL text contains `CODE.CODE = :Code` which references an undeclared `CODE` table alias — a source-level anomaly noted in the DB analysis.

## Classification

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

## Parameters

| Parameter | Direction | Type | Max length | Description |
| --- | --- | --- | --- | --- |
| `:Code` | Input | String** | 5 | Key bound from `MyCriteria.Code`. |

## Tables

| Table | Access | Columns used |
| --- | --- | --- |
| [BUSONLINE_APPS_CODE](../database-tables.md#busonline-apps-code) | DELETE | `CODE` (WHERE) |

## Sample SQL

```sql
Delete FROM BUSONLINE_APPS_CODE
Where CODE.CODE = :Code
```

## Operations and processes
- [Application code scoping](../operations/application-code-scoping.md)


## Business rules
- [BR-MNU-02: DML row-count enforcement](../business-rules.md#br-mnu-02-dml-row-count-enforcement)


> **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.Menu\clsApplicationCode.vb`
