> ## Documentation Index
> Fetch the complete documentation index at: https://docs.guile.app/llms.txt
> Use this file to discover all available pages before exploring further.

# Photo Assigned

> The photo is currently assigned to one or more resources

## Cause

The photo cannot be deleted because it is currently assigned to one or more resources (services, shops, or barber profiles).

## Fix

Remove the photo from all resources before attempting to delete it. You can: 1. List the resources where the photo is assigned 2. Remove the photo assignment from each resource 3. Then delete the photo.

## Retry safety

Not retryable until the underlying state or request changes.

## Raised by

These operations can return this problem:

* [Delete a photo](/api-reference/photos/delete-a-photo)

## Example

```json theme={null}
{
  "type": "https://docs.guile.app/problems/photoAssigned",
  "title": "Photo Assigned",
  "status": 409,
  "detail": "The photo cannot be deleted because it is currently assigned to one or more resources (services, shops, or barber pro..."
}
```
