Cmdlets for HubSpot

Build 24.0.9060

Remove-HubSpot Cmdlet

Parameters   Output Objects  

Deletes HubSpot data.

Syntax

Remove-HubSpot [parameters]

Remarks

The Remove-HubSpot cmdlet allows you to use a syntax similar to SQL DELETE statements to delete HubSpot data.

$conn = Connect-HubSpot
Remove-HubSpot -Connection $conn -Table "Contacts" -Id "123456789"
The Where parameter can also be used to specify the primary key:
Remove-HubSpot -Connection $conn -Table "exTablePowershell;" -Where "Id = 123456789"
The primary key can also be passed to the cmdlet along the pipeline:
Select-HubSpot -Connection $conn -Table Contacts -Where "VID = '123456789'" | Remove-HubSpot

Copyright (c) 2024 CData Software, Inc. - All rights reserved.
Build 24.0.9060