Remove-Dynamics365 Cmdlet
Deletes Microsoft Dynamics 365 data.
Syntax
Remove-Dynamics365 [parameters]
Remarks
The Remove-Dynamics365 cmdlet allows you to use a syntax similar to SQL DELETE statements to delete Microsoft Dynamics 365 data.
$conn = Connect-Dynamics365 -OrganizationUrl "https://myaccount.operations.dynamics.com/" -Edition "Sales" Remove-Dynamics365 -Connection $conn -Table "GoalHeadings" -Id "'test'"The Where parameter can also be used to specify the primary key:
Remove-Dynamics365 -Connection $conn -Table "exTablePowershell;" -Where "GoalHeadingId = 'test'"The primary key can also be passed to the cmdlet along the pipeline:
Select-Dynamics365 -Connection $conn -Table GoalHeadings -Where "Name = 'MyAccount'" | Remove-Dynamics365