---
title: Delete Pa Auditor Zip Code Data
summary: SQL-090
status: draft
owner: Technical Writer
last_reviewed: 2026-07-31
library: SAIF.Business.Policy.Audit.Premium
reference_type: package
---

# SQL-090: Delete Pa Auditor Zip Code Data

This statement supports the premium-audit library by delete Pa Auditor Zip Code Data.

## Classification

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

## Parameters

| Parameter | Direction | Type | Max length | Description |
| --- | --- | --- | --- | --- |
| `:PAAuditorID` | Input | bound from `PAAuditorID` | 10 | Bound in `clsAuditorZipCode.BeforeDelete` (line 174) |
| `:ZipCode` | Input | bound from `ZipCode` | 5 | Bound in `clsAuditorZipCode.BeforeDelete` (line 175) |

## Tables

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

## Sample SQL

```sql
DELETE
  PA_AUDITOR_ZIP_CODE
WHERE
  PA_AUDITOR_ZIP_CODE.PA_AUDITOR_ID = :PAAuditorID
  AND PA_AUDITOR_ZIP_CODE.ZIP_CODE = :ZipCode
```

## Operations and processes
- [Assign renewal (batch) audits to auditors](../operations/assign-renewal-batch-audits-to-auditors.md)
- [Assign off-cycle audits to auditors](../operations/assign-off-cycle-audits-to-auditors.md)

## Business rules
- [BR-014](../business-rules.md#br-014-assignment-requires-matching-territory)
- [BR-068](../business-rules.md#br-068-an-auditor-zip-row-requires-an-existing-auditor-an-assignable-auditor-and-an-existing-zip-code)



> **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.Audit.Premium/clsAuditorZipCode.vb:468`
