---
title: "Remove locations from a folder"
method: POST
path: "/locations/folders/remove"
tags: ["Organizing locations"]
---

# Remove locations from a folder

`POST /locations/folders/remove`

## Request

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

This API removes specified locations from their current folder.

**Behavior:**
- A location can belong to only one folder at a time.
- Only the locationIds need to be provided, as the system automatically identifies their current folder.
- If a location is removed, it will no longer be associated with any folder unless reassigned.

## Headers

- `Authorization` string

## Request body

- object
  - `input` object
    - `locationIds` string[], required: Array of location IDs to remove from their folders

## Response `200`

Successful response

- object
  - `data` object
    - `deleteLocationsFromFolder` object
      - `clientMutationId` unknown
      - `errors` unknown
      - `locations` string[]
      - `success` boolean

---

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