VTEX B2B GraphQL icon

VTEX B2B GraphQL

Interact with VTEX B2B Organizations GraphQL API

Actions15

Organization → Delete

AI-generated

Summary

Delete an organization by its ID

Inputs

  • organizationId (required) — The ID of the organization to delete

Output shape

an object containing a status field indicating deletion result

The GraphQL mutation returns a status field; errors are thrown unless continueOnFail is enabled.

Examples

Example 1: Delete a specific organization

Set resource to organization, operation to delete, provide Organization ID; credentials must be configured.

Example 2: Delete multiple organizations in a loop

Iterate over a list of organization IDs using the delete operation repeatedly.

Discussion