Remove-Pipedrive Cmdlet
Deletes Pipedrive data.
Syntax
Remove-Pipedrive [parameters]
Remarks
The Remove-Pipedrive cmdlet allows you to use a syntax similar to SQL DELETE statements to delete Pipedrive data.
$conn = Connect-Pipedrive -AuthScheme "Basic" -CompanyDomain "MyCompanyDomain" -APIToken "MyAPIToken" Remove-Pipedrive -Connection $conn -Table "Deals" -Id "6"The Where parameter can also be used to specify the primary key:
Remove-Pipedrive -Connection $conn -Table "exTablePowershell;" -Where "Id = 6"The primary key can also be passed to the cmdlet along the pipeline:
Select-Pipedrive -Connection $conn -Table Deals -Where "UserName = 'Bob'" | Remove-Pipedrive