---
title: "Delete Location Photos"
method: POST
path: "/locations/photos/remove"
tags: ["Locations", "Photos"]
---

# Delete Location Photos

`POST /locations/photos/remove`

## Request

- Base URL: `https://api.synup.com/api/v4`
- URL: `https://api.synup.com/api/v4/locations/photos/remove`
- Auth: none required
- TypeScript: <https://skmtc.dev/synup/apis/synup-api/docs/locations/photos/remove/post.ts> (a function with typed inputs; its response is checked against the schema)

This API allows you to delete one or more photos of type ADDITIONAL from a specified location.

:::info[]
 **Note**
Only ADDITIONAL photo types can be removed.
LOGO and COVER photo types cannot be deleted using this endpoint.
:::

For more details, refer to Manage photos for your location.

## Headers

- `Authorization` string, required

## Request body

- object
  - `input` object, required
    - `locationId` string, required: ID of the location to remove photos from
    - `photoIds` string[], required: List of Photo IDs to be deleted

## Response `200`

Logo/Cover Cannot Be Starred: If a request includes photos of type LOGO or COVER, the operation will fail for those photos.

- object
  - `data` object, required
    - `removeLocationPhotos` object, required
      - `success` boolean, required
      - `errors` unknown, required
      - `photos` object[], required
        - `databaseId` integer
        - `fileSize` integer
        - `id` string
        - `name` string
        - `starred` boolean
        - `thumbnailUrl` string
        - `type` string
        - `url` string
        - `publisherOverride` string
      - `clientMutationId` unknown, required

---

[API](https://skmtc.dev/synup/apis/synup-api.md) - [All operations](https://skmtc.dev/synup/apis/synup-api/llms.txt) - [OpenAPI document](https://skmtc.dev/synup/apis/synup-api/revisions/67de2d51c22e?raw)
