There's a new version of the HubSpot API

As of November 30, 2022, HubSpot API keys are no longer a supported authentication method for accessing HubSpot APIs. Instead, you should use a private app access token or OAuth to authenticate API calls. Learn more about this change and how to migrate an API key integration to use a private app instead.

Delete an existing form

Last updated May 31, 2023

DELETE /forms/v2/forms/:form_guid

Method Details

HTTP Methods:

DELETE

Response Format:

N/A

Requires Authentication?

Yes

Rate Limited?

Yes

Headers

User-Agent

Products:

Marketing

For a given portal, delete an existing form in a given HubSpot portal. Forms are standard website forms that can be used to generate website leads.

Required Parameters How to use Description
OAuth access token or private app access token Authorization: Bearer {token} header Used to authenticate the request. Please see this page for more details about authentication.
Form GUID Used in the request URL The unique ID fo the form that you're deleting. When deleting a form, you need to explicitly specify which form you're deleting, which is what this field is for.
Optional Parameters How to use Description
None None No optional parameters for this method.

Example URL:  https://api.hubapi.com/forms/v2/forms/b409d881-7bc3-4d8b-ad7a-cebe188f27b0

The response from this API call are standard REST-style HTTP response codes that mark success or failure, along with the JSON representing the form that you just deleted. See below for a sample of this JSON output.

  • 204 when a form is successfully deleted.
  • 401 when an unauthorized request is made.
  • 500 when an internal server error occurs.