Oct 2, 2017 5:10 AM
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.
Oct 2, 2017 3:19 PM
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.
Jul 21, 2019 1:46 AM
Hi Enrico, can you help? The API reference for delete a company shows the same URL as for return a company:
Example DELETE URL: https://api.hubapi.com/companies/v2/companies/10444744?hapikey=demo
Example GET URL: https://api.hubapi.com/companies/v2/companies/10444744?hapikey=demo
What am I missing? how do I delete a company? How did you do it?