HubSpot Custom icon

HubSpot Custom

HubSpot with custom OAuth2 scopes - supports custom objects

Delete

AI-generated

Summary

Delete a specified HubSpot object by its type and ID, confirming deletion success by returning a success status and the deleted object ID.

Inputs

  • Object Type (required) — The HubSpot object type (contacts, companies, deals, or your custom object name) to target for deletion.
  • Object ID (required) — The ID of the specific object to delete.

Output shape

a single JSON object indicating success status and the deleted object's ID

Does not return the deleted object's full data, only confirmation with 'success' true and 'deleted' ID. Errors are returned if deletion fails.

Examples

Example 1: Delete a contact by ID

Set Object Type to 'contacts' and Object ID to the contact's HubSpot ID.

Links

Discussion