data-src=/includes/commerce-only.md
deleteCompanyAddress mutation
data-src=/includes/scp-b2b-mutation.md
The deleteCompanyAddress mutation allows a company admin or user who is assigned a role that contains the Magento_CompanyAddressStorefrontCompatibility::delete permission to delete an existing company address using a provided company UID.
This mutation requires a valid customer authentication token.
Syntax
mutation {
deleteCompanyAddress(
id: ID!
) {
Boolean
}
}
Example usage
Delete a company address
The following example deletes an existing company address.
Request:
mutation DeleteCompanyAddress {
deleteCompanyAddress(id: "MTI=")
}
Response:
{
"data": {
"deleteCompanyAddress": true
}
}