Delete a company

companies

#1

When i use this endpoint https://developers.hubspot.com/docs/methods/companies/delete_company
the company is deleted form the DB or is just that the property field “isDeleted” is set to true?
If true, Can i delete a company also with this endpoint https://developers.hubspot.com/docs/methods/companies/batch-update-companies by setting isDeleted?
i asked because i need to perform a batch delete through api but it’s not available.
Thanks


#2

Hi @enrico.bianchetti,

Using the delete company endpoint does set the isDeleted field to true, but that’s not the only function it serves. The records are also properly deleted from your portal, so it’s not possible to replicate a batch delete endpoint by trying to update the isDeleted field using the batch update endpoint. To properly delete company records, you should use the delete company endpoint.


#3

Thanks @Derek_Gervais for your support.