---
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

## Changes

- **2026-07-26** `f41a4d1dfdb8` — 1 breaking, 2 warning, 2 info
  - added the new required request property `input/photoIds`
  - removed the request property `input/mediaIds`
  - removed the request property `input/photoUrls`
  - api operation id `media-manager_removeLocationPhotos` removed and replaced with `removeLocationPhotos`
  - …1 more

[Change history](https://skmtc.dev/listingsapi/apis/listings-api/changes/api/v4/locations/photos/remove/post.md)

---

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