# DeletePartnerBankAccount

## Permission Scope

partnerDetail

## Overview

deletePartnerBankAccount removes a bank account from a business partner. If the deleted account was the default, no other account is automatically promoted to default — the partner will have no default bank account until one is explicitly set.

## Business Rules

- Bank account must exist in the system
- Deleting the default bank account does not auto-promote another account to default
- Deletion is permanent and cannot be undone

## Process Flow

```mermaid
flowchart TD
    A[Receive delete request] --> B{Bank account exists?}
    B -->|No| C[Return error: bank account not found]
    B -->|Yes| D[Delete bank account record]
    D --> E[Return success]
```

## External Dependencies

- None

## Error Scenarios

- **BANK_ACCOUNT_NOT_FOUND**: Specified bank account ID does not exist

## Test Cases

- deletes an existing bank account
- deletes default bank account without promoting another
- returns error when account not found
