# Delete specific association with label not working

**URL:** <https://community.hubspot.com/t/delete-specific-association-with-label-not-working/122798>\
**Category:** APIs & Integrations\
**Tags:** developer-tools, professional\
**Created:** [December 19, 2024, 9:12am UTC](https://community.hubspot.com/t/delete-specific-association-with-label-not-working/122798 "2024-12-19T09:12:28Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![AndreMiranda](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/andremiranda/32/85896_2.png) [@AndreMiranda](https://community.hubspot.com/u/AndreMiranda)\
**Post date:** [December 19, 2024, 9:12am UTC](https://community.hubspot.com/t/delete-specific-association-with-label-not-working/122798/1 "2024-12-19T09:12:28Z")

</div>

Hi,

I’m trying to delete an association between 2 objects but for a specific label. However it’s deleting all associations between the 2 objects.

I know that the association label is correct because I can create the association with that specific label.

I’m using the v3 endpoint, just like this example:

```lia-code-sample
curl --request POST \
 --url https://api.hubapi.com/crm/v3/associations/fromObjectType/toObjectType/batch/archive \
 --header 'authorization: Bearer YOUR_ACCESS_TOKEN' \
 --header 'content-type: application/json' \
 --data '{
 "inputs": [
 {
 "from": {
 "id": "37295"
 },
 "to": {
 "id": "37295"
 },
 "type": "contact_to_company"
 }
 ]
}'

```

What is “funny” is that I’m using v3 for all my calls, but if I do a DELETE request to delete an association, it also works, but DELETE is not part of v3, but for v4. Anyway…

---

<div class="post-metadata">

**Author:** ![evaldas](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/evaldas/32/69160_2.png) [@evaldas](https://community.hubspot.com/u/evaldas)\
**Post date:** [December 19, 2024, 4:09pm UTC](https://community.hubspot.com/t/delete-specific-association-with-label-not-working/122798/2 "2024-12-19T16:09:59Z")

</div>

Hi @AndreMiranda,

The doc for [Associations API](https://developers.hubspot.com/docs/reference/api/crm/associations/association-details#post-%2Fcrm%2Fv4%2Fassociations%2F%7Bfromobjecttype%7D%2F%7Btoobjecttype%7D%2Fbatch%2Farchive) says that the DELETE endpoint will remove all of the associations between the two records, so it’s not possible to pick individual association labels

 ![evaldas_0-1734624156325.png](https://d2qpr2jzcazej7.cloudfront.net/original/3X/5/6/561a31e7440d0263e12713013f4a904138030a4b.png)

The V3 endpoint for / **batch** /archive also implies that it will remove all of the associations.

Unfortunately this can’t be done with the current API endpoints. The only thing I could suggest is to leave feedback in the HubSpot developer form describing your use case:

> **[HubSpot Developer Feedback Form](https://developers.hubspot.com/feedback)**
>
> At HubSpot, we deeply value developer feedback and are dedicated to empowering your business to Grow Better. Help shape our platform by sharing your honest, unfiltered feedback.

---

<div class="post-metadata">

**Author:** ![AndreMiranda](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/andremiranda/32/85896_2.png) [@AndreMiranda](https://community.hubspot.com/u/AndreMiranda)\
**Post date:** [December 20, 2024, 7:27am UTC](https://community.hubspot.com/t/delete-specific-association-with-label-not-working/122798/3 "2024-12-20T07:27:42Z")

</div>

Hi @evaldas ! Thanks for your answer.

But, if you look closely at the V3 example in the documentation for batch archive, you will see a “type” property being passed in the api request. It seems that internally HubSpot is completely ignoring that.

Anyway, I had to do some changes and I ended up using a V4 endpoint for what I need, there is a specific endpoint to delete an Association with a specific label and that worked just fine.
