---
title: "Remove photos from a location."
method: POST
path: "/api/v4/locations/photos/remove"
tags: ["Locations"]
---

# Remove photos from a location.

`POST /api/v4/locations/photos/remove`

Detaches one or more media files from a location by their media IDs.

## Request body

- object
  - `input` RemoveLocationPhotosInput, required
    - `clientMutationId` string
    - `locationId` string, required
    - `photoIds` string[], required

## Response `200`

Successful response

- RemoveLocationPhotosPayload — (also defined by media-manager)
  - `clientMutationId` string
  - `removedCount` integer
  - `errors` MutationErrorType[]
    - `code` string
    - `message` string, required
    - `path` string[]

## Other responses

- `400` — Bad request
- `401` — Unauthorized
- `500` — Server error

---

[API](https://skmtc.net/listingsapi/apis/listings-api.md) · [All operations](https://skmtc.net/listingsapi/apis/listings-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/listingsapi/listings-api/revisions/9274a1eac380/schema)
