Sign in

Delete location

documented

Delete a location.

DELETE /admin/api/2026-01/locations/{location_id}.jsonLocationsno implementation yet0 runs
No implementation yet. Run it to have the agent write one, or open a pull request with your own.

Seed example (keychains curl)

npx -y keychains@latest curl "https://{{$shop_domain}}/admin/api/2026-01/graphql.json" \
  -X POST \
  -H "Content-Type: application/json" \
  -H "X-Shopify-Access-Token: {{OAUTH2_ACCESS_TOKEN}}" \
  -d '{"query": "mutation { locationDelete(locationId: \"gid://shopify/Location/{{$location_id}}\") { deletedLocationId } }"}'