Remove-CDS Cmdlet
Deletes Microsoft Dataverse data.
Syntax
Remove-CDS [parameters]
Remarks
The Remove-CDS cmdlet allows you to use a syntax similar to SQL DELETE statements to delete Microsoft Dataverse data.
$conn = Connect-CDS -OrganizationUrl "https://myaccount.crm.dynamics.com/" -OAuthClientId "clientid" -OAuthClientSecret "secret" Remove-CDS -Connection $conn -Table "Accounts" -Id "'00000000-0000-0000-0000-000000000000'"The Where parameter can also be used to specify the primary key:
Remove-CDS -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-CDS -Connection $conn -Table Accounts -Where "Name = 'MyAccount'" | Remove-CDS