hubspothubspot-crm

How to delete all companies or contacts?


I'm using the free HubSpot CRM for now. I wrote some scraping code and through the API added over 17k companies and 4k contacts.

There were some errors due to an incomplete understanding of some of the API calls and now I'd like to wipe everything out and start over.

I realize I could run the "Get Recently Created Companies" and for each of the 20 it returns run the delete company API call, then loop it until no companies exist, however this seems like something I shouldn't have to write code to accomplish.

I checked the Academy but the examples showed an interface that didn't match what I see, so it's either outdated or meant for a different version of HubSpot than I have. Didn't find much on Google either.

Anyone else know of an easy solution for this?


Solution

  • HubSpot developer here. I just checked with the folks who run the Contacts and Companies APIs – the best option you have right now is to contact support.

    I know that's not the answer you're looking for. We're working on improving things, but it's not there yet.