Requires write_locations access scope.

Deletes a location.


Anchor to locationId
locationId
required

The ID of a location to delete.


Was this section helpful?

The ID of the location that was deleted.

The list of errors that occurred from executing the mutation.


Was this section helpful?

Examples

Hide code
DescriptionCopy
mutation {
  locationDelete(locationId: "gid://shopify/Location/658095763") {
    deletedLocationId
  }
}
Hide code
Response
JSON
{
  "locationDelete": {
    "deletedLocationId": "gid://shopify/Location/658095763"
  }
}