Comment on page
Delete deal
Tags: #hubspot #crm #sales #deal #naas_drivers #snippet
Last update: 2023-04-12 (Created: 2022-02-21)
Description: This notebook allows users to delete deals from their HubSpot account.
from naas_drivers import hubspot
import naas
👉 Starting November 30, 2022, HubSpot API keys no longer enable access to HubSpot APIs, so in Naas version 2.8.3 and above, you need create a private app and use the access token.
Enter Your Access Token
HS_ACCESS_TOKEN = naas.secret.get("HS_ACCESS_TOKEN") or "YOUR_HS_ACCESS_TOKEN"
Enter deal id
deal_id = "3501002068"
deal = hubspot.connect(HS_ACCESS_TOKEN).deals.delete(deal_id)
deal
Last modified 3mo ago