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

Company contact delete

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

## Type Signature

`CompanyContactDeletePayload`

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

* `companyContactId`

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

  Company contact id

## Returns

* `deletedCompanyContactId`

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

  Contact id

* `userErrors`

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

  Error message

## Code Example

```graphql
mutation companyContactDelete($companyContactId: ID! ) {
	companyContactDelete(companyContactId: $companyContactId ) 
		 {
			# CompanyContactDeletePayload fields
		}
		
	}

```

## Variables

```json
{
  "companyContactId": {}
}
```

## Examples

### delete company contact

Delete company contact information based on company contact id

**Request:**

```json
{
  "companyContactId": "gid://shopline/CompanyContact/4217281771"
}
```

**Response:**

```json
{
  "data": {
    "data": {
      "companyContactDelete": {
        "deletedCompanyContactId": "gid://shopline/CompanyContact/4217281771",
        "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).

