# deleteProfilePhoto

Source: /openapi/thomas-federated.openapi.json

## Operation

| Method | URL |
|---|---|
| DELETE | https://api.thomas.co/v1/colleagues/{id}/photo |

| Field | Value |
|---|---|
| operationId | deleteProfilePhoto |
| method | DELETE |
| server | https://api.thomas.co/v1 |
| path | /colleagues/{id}/photo |
| tags | `Colleagues & Profiles` |
| summary | Remove colleague profile photo (self or admin) |
| badges | `{"name":"Viewer"}`, `{"name":"Admin"}`, `{"name":"Owner"}` |

## Request Parameters

| Name | In | Required | Schema | Description |
|---|---|---|---|---|
| id | path | true | string |  |

## Request Body

None.

## Responses

| Status | Description | Schema refs |
|---|---|---|
| 200 | Photo removed successfully | #/components/schemas/PhotoDeleteResponseDto |
| 401 | Invalid or missing authentication token (AUTH_TOKEN_INVALID) | #/components/schemas/ApiErrorResponseDto |
| 403 | Admin role required (unless own profile) | #/components/schemas/ApiErrorResponseDto |
| 404 | No photo exists for this colleague | #/components/schemas/ApiErrorResponseDto |

## Artifact Examples

### Response 401 example

```json
{
  "statusCode": 401,
  "message": "Invalid or missing authentication token",
  "error": "AUTH_TOKEN_INVALID"
}
```

### Response 403 example

```json
{
  "statusCode": 403,
  "message": "Admin role required unless deleting your own photo",
  "error": "PHOTO_FORBIDDEN"
}
```

### Response 404 example

```json
{
  "statusCode": 404,
  "message": "Photo not found",
  "error": "PHOTO_NOT_FOUND"
}
```
