# DeactivateChannel

## Overview

DeactivateChannel removes an active Channel from future operational use while preserving historical references.

## Business Rules

- Only ACTIVE Channel records may be deactivated.
- Historical references to the Channel must remain valid after deactivation.

## Process Flow

```mermaid
flowchart TD
    A[Receive deactivate request] --> B[Load Channel]
    B --> C{Status is ACTIVE?}
    C -->|No| D[Return INVALID_CHANNEL_STATUS]
    C -->|Yes| E[Set status to INACTIVE]
    E --> F[Return deactivated Channel]
```

## External Dependencies

- None

## Error Scenarios

- **CHANNEL_NOT_FOUND**: Referenced Channel does not exist.
- **INVALID_CHANNEL_STATUS**: Only ACTIVE Channel records may be deactivated.

## Test Cases

- deactivates an active Channel
- throws when Channel is not active
