<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Delete Contact in batches in APIs &amp; Integrations</title>
    <link>https://community.hubspot.com/t5/APIs-Integrations/Delete-Contact-in-batches/m-p/800928#M64508</link>
    <description>&lt;P&gt;Hello Himanshu,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks a lot for your quick reply !&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Have a nice day &lt;span class="lia-unicode-emoji" title=":winking_face:"&gt;😉&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P data-unlink="true"&gt;&lt;SPAN class=""&gt;AlexLHW&lt;/SPAN&gt;&amp;nbsp;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;</description>
    <pubDate>Wed, 31 May 2023 07:04:20 GMT</pubDate>
    <dc:creator>AlexLHW</dc:creator>
    <dc:date>2023-05-31T07:04:20Z</dc:date>
    <item>
      <title>Delete Contact in batches</title>
      <link>https://community.hubspot.com/t5/APIs-Integrations/Delete-Contact-in-batches/m-p/799040#M64506</link>
      <description>&lt;P&gt;Hey&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm working on a little integration between our app and hubspot's api.&lt;/P&gt;&lt;P&gt;I'm actually working on how to delete contact in our hubspot's crm, and what I understood is that I need to make a batche of contact to delete using&amp;nbsp;&lt;EM&gt;/crm/v3/objects/contacts/batch/create&lt;/EM&gt;&amp;nbsp;and then send the id of the freshly created batch using&lt;EM&gt;&amp;nbsp;/crm/v3/objects/contacts/batch/archive&amp;nbsp;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;But for now, I don't clearly understand from the doc what I need to send to create the batche.&lt;/P&gt;&lt;P&gt;Do I need to pass every field of my contacts into the body of the request, or just the unique identifier ?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks for your help on that !&lt;/P&gt;</description>
      <pubDate>Thu, 25 May 2023 15:33:57 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/APIs-Integrations/Delete-Contact-in-batches/m-p/799040#M64506</guid>
      <dc:creator>AlexLHW</dc:creator>
      <dc:date>2023-05-25T15:33:57Z</dc:date>
    </item>
    <item>
      <title>Re: Delete Contact in batches</title>
      <link>https://community.hubspot.com/t5/APIs-Integrations/Delete-Contact-in-batches/m-p/799350#M64507</link>
      <description>&lt;P&gt;Hello&amp;nbsp;&lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/574353"&gt;@AlexLHW&lt;/a&gt;&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;When using the HubSpot API to create a batch of contacts for deletion, you only need to include the unique identifiers of the contacts in the request body, rather than passing every field of the contacts.&lt;BR /&gt;&lt;BR /&gt;you need to provide an array of objects, where each object represents a contact and includes the unique identifier of the contact.&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;{
  "inputs": [
    {
      "id": "CONTACT_ID_1"
    },
    {
      "id": "CONTACT_ID_2"
    },
    ...
  ]
}
&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Replace "CONTACT_ID_1", "CONTACT_ID_2", and so on with the actual unique identifiers of the contacts you want to delete.&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;
&lt;P&gt;Once you have created the batch using the /crm/v3/objects/contacts/batch/create endpoint and obtained the batch ID, you can then use the /crm/v3/objects/contacts/batch/archive endpoint to delete the contacts in the batch by providing the batch ID in the request.&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 26 May 2023 07:11:43 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/APIs-Integrations/Delete-Contact-in-batches/m-p/799350#M64507</guid>
      <dc:creator>himanshurauthan</dc:creator>
      <dc:date>2023-05-26T07:11:43Z</dc:date>
    </item>
    <item>
      <title>Re: Delete Contact in batches</title>
      <link>https://community.hubspot.com/t5/APIs-Integrations/Delete-Contact-in-batches/m-p/800928#M64508</link>
      <description>&lt;P&gt;Hello Himanshu,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks a lot for your quick reply !&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Have a nice day &lt;span class="lia-unicode-emoji" title=":winking_face:"&gt;😉&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P data-unlink="true"&gt;&lt;SPAN class=""&gt;AlexLHW&lt;/SPAN&gt;&amp;nbsp;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 31 May 2023 07:04:20 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/APIs-Integrations/Delete-Contact-in-batches/m-p/800928#M64508</guid>
      <dc:creator>AlexLHW</dc:creator>
      <dc:date>2023-05-31T07:04:20Z</dc:date>
    </item>
  </channel>
</rss>

