# Deleting A Single Association Type Between Two Objects (v4)?

**URL:** <https://community.hubspot.com/t/deleting-a-single-association-type-between-two-objects-v4/56601>\
**Category:** APIs & Integrations\
**Tags:** companies, contacts\
**Created:** [May 10, 2022, 11:57am UTC](https://community.hubspot.com/t/deleting-a-single-association-type-between-two-objects-v4/56601 "2022-05-10T11:57:22Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![rare-gecko](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/rare-gecko/32/21752_2.png) [@rare-gecko](https://community.hubspot.com/u/rare-gecko)\
**Post date:** [May 10, 2022, 11:57am UTC](https://community.hubspot.com/t/deleting-a-single-association-type-between-two-objects-v4/56601/1 "2022-05-10T11:57:22Z")

</div>

In v3 of the CRM Associations API, you could delete a single type of association between two objects like so:

DELETE /crm/v3/objects/#{object\_name}/#{object\_id}/associations/#{reference\_object\_name}/#{reference\_object\_id}/#{association\_type}

Or more concretely, deleting the association between a Company to a Contact:

DELETE “/crm/v3/objects/companies/123/associations/contacts}/123/COMPANY\_TO\_CONTACT”

But that same ability doesn’t appear to exist in v4? You can only delete all association types between two objects?

**DELETE…/crm/v4/objects/{objectType}/{objectId}/associations/{toObjectType}/{toObjectId}**

So if I had a Company with two association defintions both to Customers: One Hubspot\_defined (Company To Contact, unlabeled) and one User\_defined (Company To Contact, labeled: VIP). I don’t have a way of just deleting just the VIP association?

---

<div class="post-metadata">

**Author:** ![Jaycee\_Lewis](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/jaycee_lewis/32/61352_2.png) [@Jaycee\_Lewis](https://community.hubspot.com/u/Jaycee_Lewis)\
**Post date:** [May 10, 2022, 4:57pm UTC](https://community.hubspot.com/t/deleting-a-single-association-type-between-two-objects-v4/56601/2 "2022-05-10T16:57:40Z")

</div>

Hi, @rare-gecko thank you very much for the great question.

Hey, @LMeert do you have any insight you can share for @rare-gecko and their question?

Thank you very much! – Jaycee

---

<div class="post-metadata">

**Author:** ![LMeert](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/lmeert/32/103847_2.png) [@LMeert](https://community.hubspot.com/u/LMeert)\
**Post date:** [May 11, 2022, 1:44pm UTC](https://community.hubspot.com/t/deleting-a-single-association-type-between-two-objects-v4/56601/3 "2022-05-11T13:44:26Z")

</div>

Hi @rare-gecko,

After some testing, it looks like you are right that you can’t target a specific association with the v4 endpoint, you either delete all or not (all but the association labelled primary)

On the other hand, the v3 is still very much usable :

- first run a v4 call to get associations between two records to get the list of association with labels and associationTypeID (cf. below for contact object with ID 37601)

 ![LMeert_0-1652276135336.png](https://d2qpr2jzcazej7.cloudfront.net/original/2X/6/6becd8e675a857ceb3d42fbbb54d9e9cdf66c55d.png)

- Then run your v3 call to delete the association and specify the TypeID you want to delete in lieu of the {associationType} parameter.  
If I take the example above, I’ll make a DELETE call to this endpoint :  
crm/v3/objects/contact/37601/associations/company/7725139306\*\*/57\*\*

I agree that this is weird to find out that the v4 of the associations API adds the label feature but in the process becomes less flexible than the v3.

Maybe that’s something [@Jaycee\_Lewis](https://community.hubspot.com/t5/user/viewprofilepage/user-id/127074) can report to the product team ?

Unless of course I’m wrong and someone figured out how to do it ? @Teun or @Anonymous maybe ?

Best,

Ludwig
