# Delete Custom Object Error

**URL:** <https://community.hubspot.com/t/delete-custom-object-error/34576>\
**Category:** APIs & Integrations\
**Tags:** developer-tools, sdk\
**Created:** [March 26, 2021, 12:48am UTC](https://community.hubspot.com/t/delete-custom-object-error/34576 "2021-03-26T00:48:36Z")\
**Posts on this page:** 1\
**Showing post:** 5

<div class="post-metadata">

**Author:** ![rOsborn123](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/rosborn123/32/9140_2.png) [@rOsborn123](https://community.hubspot.com/u/rOsborn123)\
**Post date:** [March 26, 2021, 6:28pm UTC](https://community.hubspot.com/t/delete-custom-object-error/34576/5 "2021-03-26T18:28:06Z")

</div>

@tominal  
I’ve deleted custom objects many times before. If it helps you, make sure you’ve delete all records of a custom object then hit the

`https://api.hubapi.com/crm/v3/schemas/{objectType}`

endpoint, then hit the

`https://api.hubapi.com/crm/v3/schemas/{objectType}?archived=true`

endpoint to completely delete the object. You can then recreate a custom object with the same name if you want. Purge has been deprecated, I believe. The key is to make sure all instances of the object are deleted first. I’m not sure if this helps but just giving some background in case it might help. This seems to be a particular error. Let me know if you’ve tried that and are getting this same error on the initial delete endpoint. Might help to pinpoint what’s going on and where.

---

_[View the full topic](https://community.hubspot.com/t/delete-custom-object-error/34576)._
