Delete Page API not working

Hi team,

I am trying to delete landing page using the API mentioned in this documentation 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

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.

Regards,