---
title: "SQL-038: Delete an application code"
summary: Delete an application code
status: draft
owner: SAIF Doc Gen
last_reviewed: 2026-08-17
library: SAIF.Business.Menu
reference_type: package
---

# SQL-038: Delete an application code

This statement is the `DeleteSQL` implementation of `clsApplicationCode.Criteria`, executed from `BeforeDelete` against `BUSONLINE_APPS_CODE`. Delete an application code.

## 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` |

## Parameters

| Parameter | Direction | Type | Max length | Description |
| --- | --- | --- | --- | --- |
| `:Code` | Input | String | 5 | Application code to delete |

## Tables

| Table | Access | Columns used |
| --- | --- | --- |
| [BUSONLINE_APPS_CODE](../database-tables.md#busonline_apps_code) | DELETE | CODE (WHERE — written as the undeclared alias `CODE.CODE`*) |

## Sample SQL

```sql
-- Delete an application code
Delete FROM
  BUSONLINE_APPS_CODE
Where
  CODE.CODE = :Code
```

## Operations and processes

- [Update or delete a maintained object](../operations/op-menu-07-update-delete-maintained-object.md)

## Business rules

- [BR-MENU-020](../business-rules.md#br-menu-020-single-row-write-verification): Single-row write verification
- [BR-MENU-022](../business-rules.md#br-menu-022-delete-returns-object-to-new-state): Delete returns object to new state

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

## Sources
- SAIF.Business.Menu/clsApplicationCode.vb
