data-src=../../../../../includes/commerce-only.md
deleteCompanyRole mutation
Use the deleteCompanyRole mutation to delete a company role by ID.
You can get the role ID with the company query.
This mutation requires a valid customer authentication token.
Syntax
mutation {
deleteCompanyRole(
id: ID!
) {
DeleteCompanyRoleOutput
}
}
Reference
The deleteCompanyRole reference provides detailed information about the types and fields defined in this mutation.
Example usage
The following example deletes the specified company role.
Request:
mutation {
deleteCompanyRole(
id: "Mg=="
) {
success
}
}
Response:
{
"data": {
"deleteCompanyRole": {
"success": true
}
}
}