Remove-D365BusinessCentral Cmdlet
Deletes Microsoft Dynamics 365 Business Central data.
Syntax
Remove-D365BusinessCentral [parameters]
Remarks
The Remove-D365BusinessCentral cmdlet allows you to use a syntax similar to SQL DELETE statements to delete Microsoft Dynamics 365 Business Central data.
$conn = Connect-D365BusinessCentral -OrganizationUrl "https://api.businesscentral.dynamics.com/v1.0/api/v1.0" Remove-D365BusinessCentral -Connection $conn -Table "Accounts" -Id "'00000000-0000-0000-0000-000000000000'"The Where parameter can also be used to specify the primary key:
Remove-D365BusinessCentral -Connection $conn -Table "exTablePowershell;" -Where "AccountId = '00000000-0000-0000-0000-000000000000'"The primary key can also be passed to the cmdlet along the pipeline:
Select-D365BusinessCentral -Connection $conn -Table Accounts -Where "Name = 'MyAccount'" | Remove-D365BusinessCentral