Skip to content
This repository has been archived by the owner on Oct 19, 2023. It is now read-only.

contacts.delete(id) not working #307

Open
HuckleberryCarignan opened this issue Jul 27, 2021 · 0 comments
Open

contacts.delete(id) not working #307

HuckleberryCarignan opened this issue Jul 27, 2021 · 0 comments

Comments

@HuckleberryCarignan
Copy link

I'm attempting to delete a contact given the id. I can get the id via the hubspot.contacts.getByEmail(email), it get's registered on the HubSpot's website call-log. The delete method doesn't seem to even hit the call-log. Is this deprecated?

const HubSpot = require('hubspot');  

  deleteContactById: function (apikey, id) {
    let hubspot = new HubSpot({ apiKey: apikey });
    browser.call(() => {
      hubspot.contacts.delete(id)
      .then(response => console.log(response));
    });
    return;
  }
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant