Anchor to companyLocationsDeletecompany
company Locations Delete
mutation
Requires access scope or
access scope. Also: The API client must be installed on a Shopify Plus store.
Deletes a list of company locations.
Anchor to Arguments
Arguments
- Anchor to companyLocationIdscompany•
Location Ids [ID!]!required A list of IDs of company locations to delete.
Was this section helpful?
- Anchor to deletedCompanyLocationIdsdeleted•
Company Location Ids A list of IDs of the deleted company locations.
- Anchor to userErrorsuser•
Errors [BusinessCustomer User Error!]!non-null The list of errors that occurred from executing the mutation.
Was this section helpful?
Mutation Reference
1mutation companyLocationsDelete($companyLocationIds: [ID!]!) {2 companyLocationsDelete(companyLocationIds: $companyLocationIds) {3 deletedCompanyLocationIds4 userErrors {5 field6 message7 }8 }9}
Input
1{2 "companyLocationIds": [3 "gid://shopify/<objectName>/10079785100"4 ]5}
{
"companyLocationIds": [
"gid://shopify/<objectName>/10079785100"
]
}