---
title: "companyLocationDelete"
description: "Delete company location"
doc_type: graphql
doc_category: adminGraphQL
doc_version: v20270301
source_url:
  html: 'https://developer.shopline.com/docs/admin-graph-ql-api/b-2-b/mutations/company-location-delete'
  md: 'https://developer.shopline.com/docs/admin-graph-ql-api/b-2-b/mutations/company-location-delete.md'
---
# companyLocationDelete

Delete company location

- **API Version:** v20270301
- **API Type:** Admin
- **API Protocol:** GraphQL
- **Operation Type:** Mutation

## Arguments

* `companyLocationId`

  [ID!](https://developer.shopline.com/docs/admin-graph-ql-api/common/scalars/id.md)

  Location id

## Returns

* `deletedCompanyLocationId`

  [ID](https://developer.shopline.com/docs/admin-graph-ql-api/common/scalars/id.md)

  Location Id

* `userErrors`

  [[BusinessCustomerUserError!]!](https://developer.shopline.com/docs/admin-graph-ql-api/customers/objects/business-customer-user-error.md)

  Error message

## Examples

### Location Delete

Delete location information based on location ID

**Request:**

```json
mutation companyLocationDelete($companyLocationId: ID!) {
  companyLocationDelete(companyLocationId: $companyLocationId) {
    deletedCompanyLocationId
    userErrors {
      code
      field
      message
    }
  }
}
```

**Response:**

```json
{
  "data": {
    "data": {
      "companyLocationDelete": {
        "deletedCompanyLocationId": "gid://shopline/CompanyLocation/6464925548393537583",
        "userErrors": []
      }
    }
  }
}
```

## Error Handling

For detailed information about common codes, see [Status and error codes](https://developer.shopline.com/docs/apps/api-instructions-for-use/graph-ql-admin-api/overview.md#status-and-error-codes).

