Cmdlets for Microsoft Dataverse

Build 23.0.8839

Remove-CDS Cmdlet

Parameters   Output Objects  

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

Copyright (c) 2024 CData Software, Inc. - All rights reserved.
Build 23.0.8839