# Remove location from a tag

```http
POST https://api.synup.com/api/v4/locations/tags/remove
```

Removes the association between a location and a specified tag. This operation:
- Only removes the association, it does not delete the tag itself
- Does not affect other locations that may be associated with the same tag
- Returns success even if the location was not previously associated with the tag

Source: https://developer.synup.com/api/organizing-locations/remove-location-from-a-tag

## Request body

| Name | Type | Required | Description |
| --- | --- | --- | --- |
| `input` | object | required |  |
| `input.locationId` | string | required | Unique identifier of the location to remove from the tag |
| `input.tag` | string | required | Name of the tag to remove the location from |

## Example request

```bash
curl -X POST 'https://api.synup.com/api/v4/locations/tags/remove' \
  -H 'Authorization: API YOUR_API_KEY' \
  -H 'Content-Type: application/json' \
  -d '""'
```

## Responses

| Status | Description |
| --- | --- |
| `200` | Operation result |
| `400` | Bad request - Invalid location ID or tag name |
| `401` | Unauthorized - Authentication required |
| `403` | Forbidden - Insufficient permissions |
| `404` | Location or tag not found |
