---
title: "companyContactDelete"
description: "公司联系人删除"
doc_type: graphql
doc_category: adminGraphQL
doc_version: v20270301
source_url:
  html: 'https://developer.shopline.com/zh-hans-cn/docs/admin-graph-ql-api/b-2-b/mutations/company-contact-delete'
  md: 'https://developer.shopline.com/zh-hans-cn/docs/admin-graph-ql-api/b-2-b/mutations/company-contact-delete.md'
---
# companyContactDelete

公司联系人删除

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

## Type Signature

`CompanyContactDeletePayload`

## Required Permissions

* `write_customers`

接口访问需要令牌，具体如何获取令牌请参考：[身份认证](https://developer.shopline.com/zh-hans-cn/docs/apps/api-instructions-for-use/graph-ql-admin-api/overview.md)

## Arguments

* `companyContactId`

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

  公司联系人id

## Returns

* `deletedCompanyContactId`

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

  联系人id

* `userErrors`

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

  错误信息

## Code Example

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

```

## Variables

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

## Examples

### 删除公司联系人

根据公司联系人id删除公司联系人信息

**Request:**

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

**Response:**

```json
{
  "data": {
    "data": {
      "companyContactDelete": {
        "deletedCompanyContactId": "gid://shopline/CompanyContact/4217281771",
        "userErrors": []
      }
    }
  }
}
```

## Error Handling

关于更多通用错误码说明，参考：[状态码和错误码](https://developer.shopline.com/zh-hans-cn/docs/apps/api-instructions-for-use/graph-ql-admin-api/overview.md#status-and-error-codes)。

