ToolsCRM
mailmoo_company_delete
Delete companies from the CRM
Deletes companies from the workspace. People who work there stay, including their campaign enrollments. Pass one company by exact name or id, or companyIds for several, up to 5,000. A name that matches more than one company is refused. Without confirm it changes nothing and returns how many would be deleted: show that and ask, then call again with confirm: true. To delete the people, use person_delete.
Effect: Write. See Effects.
Permissions: Delete people and companies, Read CRM.
Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
company | string | No | One company, by exact name or id. |
companyIds | array of string | No | Companies to delete, each an exact name or an id. Combined with company. |
confirm | boolean | No | Leave out first: the call then changes nothing and returns what would happen. Show that to the user, and call again with confirm: true once they agree. |

