# Deleting a line item using ExternalObjectId

**URL:** <https://community.hubspot.com/t/deleting-a-line-item-using-externalobjectid/26882>\
**Category:** APIs & Integrations\
**Created:** [October 16, 2020, 8:11pm UTC](https://community.hubspot.com/t/deleting-a-line-item-using-externalobjectid/26882 "2020-10-16T20:11:06Z")\
**Posts on this page:** 1\
**Showing post:** 7

<div class="post-metadata">

**Author:** ![Resanehlab](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/resanehlab/32/24246_2.png) [@Resanehlab](https://community.hubspot.com/u/Resanehlab)\
**Post date:** [October 24, 2020, 1:44pm UTC](https://community.hubspot.com/t/deleting-a-line-item-using-externalobjectid/26882/7 "2020-10-24T13:44:35Z")

</div>

Thanks. Now I can get a deal with its corresponding ExternalObjectId but when I try to get line items associated with a deal through the CRM Associations API [https://api.hubapi.com/crm-associations/v1/associations/dealId/HUBSPOT\_DEFINED/19](https://api.hubapi.com/crm-associations/v1/associations/dealId/HUBSPOT_DEFINED/19)

I’m getting this response: “Error 405 Method Not Allowed”

Am I missing something?

Thanks!

---

_[View the full topic](https://community.hubspot.com/t/deleting-a-line-item-using-externalobjectid/26882)._
