---
title: companiesDelete - GraphQL Admin
description: Deletes a list of companies.
api_version: 2026-07
source_url:
  html: https://shopify.dev/docs/api/admin-graphql/latest/mutations/companiesdelete
  md: https://shopify.dev/docs/api/admin-graphql/latest/mutations/companiesdelete.md
---

# companies​Delete

mutation

Requires `write_customers` access scope or `write_companies` access scope. Also: The shop must have access to B2B. Some operations may require additional plan capabilities.

Deletes a list of companies.

## Arguments

* company​Ids

  [\[ID!\]!](https://shopify.dev/docs/api/admin-graphql/latest/scalars/ID)

  required

  A list of IDs of companies to delete.

***

## Companies​Delete​Payload returns

* deleted​Company​Ids

  [\[ID!\]](https://shopify.dev/docs/api/admin-graphql/latest/scalars/ID)

  A list of IDs of the deleted companies.

* user​Errors

  [\[Business​Customer​User​Error!\]!](https://shopify.dev/docs/api/admin-graphql/latest/objects/BusinessCustomerUserError)

  non-null

  The list of errors that occurred from executing the mutation.

***

## Examples

* ### companiesDelete reference