# DeletePipelineItemComment

## Permission Scope

itemComment

## Overview

Deletes an existing item comment. Only the original author may delete their own comment.

## Business Rules

- Comment must exist
- Calling user must be the original author of the comment
- Deletion is permanent — the comment is removed from subsequent list queries

## Process Flow

```mermaid
flowchart TD
    A[Receive deletePipelineItemComment input] --> B{Comment exists?}
    B -->|No| C[Return COMMENT_NOT_FOUND]
    B -->|Yes| D{Caller is original author?}
    D -->|No| E[Return FORBIDDEN]
    D -->|Yes| F[Delete comment]
    F --> G[Return deleted PipelineItemComment]
```

## External Dependencies

- None

## Error Scenarios

- **COMMENT_NOT_FOUND**: Specified comment ID does not exist
- **FORBIDDEN**: Calling user is not the original author

## Test Cases

- author can delete their own comment
- non-author delete is rejected with FORBIDDEN
- deleted comment is removed from subsequent list queries
- returns error when comment does not exist
