Remove-HubSpot Cmdlet
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