Anchor to companyLocationDeletecompany
companyLocationDelete
mutation
Requires access scope or
access scope. Also: The API client must be installed on a Shopify Plus store.
Deletes a company location.
Anchor to Arguments
Arguments
- Anchor to companyLocationIdcompany•
Location Id ID!required The ID of the company location to delete.
Was this section helpful?
Anchor to CompanyLocationDeletePayload returnsCompanyLocationDeletePayload returns
- Anchor to deletedCompanyLocationIddeleted•
Company Location Id The ID of the deleted company location.
- Anchor to userErrorsuser•
Errors [BusinessCustomer non-nullUser Error!]! The list of errors that occurred from executing the mutation.
Was this section helpful?
Mutation Reference
mutation companyLocationDelete($companyLocationId: ID!) {
companyLocationDelete(companyLocationId: $companyLocationId) {
deletedCompanyLocationId
userErrors {
field
message
}
}
}
Input
{
"companyLocationId": "gid://shopify/<objectName>/10079785100"
}
{
"companyLocationId": "gid://shopify/<objectName>/10079785100"
}