Skip to main content

companyDeleteBulk

Remove several companies in one request.

Each id is deleted exactly as companyDelete would delete it — a company that still has contacts attached is refused, and every deleted company emits its own event.

An id that cannot be deleted does not fail the request. It lands in failedIds with an entry in failures saying why, and the rest of the batch is deleted regardless. Repeated ids are collapsed, so an id sent twice gets one verdict.

Read failures[].reason before offering a retry: only COMPANY_DELETE_ERROR describes something a repeat could fix.

Possible errors:

  • INVALID_INPUT: The list of ids was empty.

AUTH: Role=[user.OWNER]

companyDeleteBulk(
ids: [Int!]!
): CompanyBulkDeleteResponse!

Arguments

companyDeleteBulk.ids ● [Int!]! non-null scalar

Numeric identifiers of the companies to delete. Recommended maximum: 100 per request — advisory, not enforced.

Type

CompanyBulkDeleteResponse object