# Delete Page API not working

**URL:** <https://community.hubspot.com/t/delete-page-api-not-working/57999>\
**Category:** APIs & Integrations\
**Tags:** cms-content\
**Created:** [May 31, 2022, 7:26am UTC](https://community.hubspot.com/t/delete-page-api-not-working/57999 "2022-05-31T07:26:09Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Hirthikraj](https://avatars.discourse-cdn.com/v4/letter/h/f0a364/32.png) [@Hirthikraj](https://community.hubspot.com/u/Hirthikraj)\
**Post date:** [May 31, 2022, 7:26am UTC](https://community.hubspot.com/t/delete-page-api-not-working/57999/1 "2022-05-31T07:26:09Z")

</div>

Hi team,

I am trying to delete landing page using the API mentioned in this [documentation](https://legacydocs.hubspot.com/docs/methods/pages/delete_pages_page_id) and also the V3 api. I am getting 301 response instead of 204 response [successful response code].

I cannot delete a landing page using this API.

Is there any other API for deleting Landing page or any other solution?

Thank you.

Hirthik

---

<div class="post-metadata">

**Author:** ![himanshurauthan](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/himanshurauthan/32/53076_2.png) [@himanshurauthan](https://community.hubspot.com/u/himanshurauthan)\
**Post date:** [May 31, 2022, 10:27am UTC](https://community.hubspot.com/t/delete-page-api-not-working/57999/2 "2022-05-31T10:27:55Z")

</div>

Hello @Hirthikraj,

Make sure that the **page\_id** that you are using exists in the HubSpot. Also, I recommend you try v3 API (currently in beta but you can use it) [Accounts Dashboard | HubSpot](https://developers.hubspot.com/docs/api/cms/pages).

Regards,
