---
title: "companyContactsDelete"
description: "Company contact batch delete"
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-contacts-delete'
  md: 'https://developer.shopline.com/docs/admin-graph-ql-api/b-2-b/mutations/company-contacts-delete.md'
---
# companyContactsDelete

Company contact batch delete

- **Required Scopes:** `write_customers`
- **API Version:** v20270301
- **API Type:** Admin
- **API Protocol:** GraphQL
- **Operation Type:** Mutation

## Type Signature

`CompanyContactsDeletePayload`

## Required Permissions

* `write_customers`

An access token is required to call this API. Refer to [Authorization](https://developer.shopline.com/docs/apps/api-instructions-for-use/graph-ql-admin-api/overview.md) for more information about how to obtain the token.

## Arguments

* `companyContactIds`

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

  Contact id number list (max 100 )

## Returns

* `deletedCompanyContactIds`

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

  Delete id collection

* `userErrors`

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

  Error message

## Code Example

```graphql
mutation companyContactsDelete($companyContactIds: [ID!] ) {
	companyContactsDelete(companyContactIds: $companyContactIds ) 
		 {
			# CompanyContactsDeletePayload fields
		}
		
	}

```

## Variables

```json
{
  "companyContactIds": {}
}
```

## Examples

### Batch delete company contacts

Supports deleting multiple company contacts, max 100

**Request:**

```json
{
  "companyContactIds": [
    "gid://shopline/CompanyContact/4217281771",
    "gid://shopline/CompanyContact/4600093512"
  ]
}

```

**Response:**

```json
{
  "data": {
    "data": {
      "companyContactsDelete": {
        "userErrors": [],
        "deletedCompanyContactIds": [
          "gid://shopline/CompanyContact/4217281771",
          "gid://shopline/CompanyContact/4600093512"
        ]
      }
    }
  }
}
```

## 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).

