Locations & Trade PartnersDelete a Location Group

Delete a Location Group

Deletes the location group with this identifier. The request has no body. A location group that is still assigned can be deleted: locations assigned to the group are kept and are no longer assigned to a group. The identifier can be used again afterwards.

curl -X DELETE "https://connect.wholechain.com/Integration/LocationGroup/GROUP-001" \
  -H "Content-Type: application/json" \
  -H "X-API-KEY: example_string" \
  -H "accept: */*"
{}
DELETE
/Integration/LocationGroup/{identifier}
DELETE
Base URLstring

Target server for requests. Edit to use your own host.

path
identifierstring
Required

The identifier of the location group to delete.

header
X-API-KEYstring
Required

Your Wholechain API key.

header
acceptstring

Response content type.

Options: */*
Request Preview
Response

Response will appear here after sending the request

Responses

Introduction

This API deletes a location group from Wholechain.

Provide the identifier of the location group in the URL path.

To manage location groups in the Wholechain app, see Location Groups.


Endpoint

MethodURL
DELETEhttps://connect.wholechain.com/Integration/LocationGroup/{identifier}

Request Headers

HeaderDescriptionExample Value
X-API-KEYYour Wholechain API key.<YOUR_API_KEY>
acceptResponse content type.*/*

Path Parameters

ParameterData TypeDescriptionRequired
identifierSTRINGThe identifier of the location group to delete.Yes

This endpoint has no request body.


Example Request

DELETE https://connect.wholechain.com/Integration/LocationGroup/GROUP-001
X-API-KEY: YOUR_API_KEY

cURL

curl -X 'DELETE' \
  'https://connect.wholechain.com/Integration/LocationGroup/GROUP-001' \
  -H 'accept: */*' \
  -H 'X-API-KEY: YOUR_API_KEY'

Responses

204 — No Content

The location group is deleted. The response has no body.

404 — Not Found

No location group with this identifier exists, for example because it was already deleted.

{
  "type": "https://tools.ietf.org/html/rfc9110#section-15.5.5",
  "title": "Location group not found: GROUP-001",
  "status": 404,
  "traceId": "<trace-id>"
}

Important Notes

  • The request has no body.
  • You can delete a location group that is still assigned to locations. The locations are kept and are no longer assigned to a group.
  • After a location group is deleted, its identifier can be used again to create a new one.
  • To create a location group, see Create a Location Group.