Cmdlets for Microsoft Exchange

Build 24.0.9060

Remove-Exchange Cmdlet

Parameters   Output Objects  

Deletes Microsoft Exchange data.

Syntax

Remove-Exchange [parameters]

Remarks

The Remove-Exchange cmdlet allows you to use a syntax similar to SQL DELETE statements to delete Microsoft Exchange data.

$conn = Connect-Exchange -User '[email protected]' -Password 'myPassword' -Server 'https://outlook.office365.com/EWS/Exchange.asmx' -Platform 'Exchange_Online'
Remove-Exchange -Connection $conn -Table "Contacts" -Id "AQMkAGRlMWQ5MDg0..."
The Where parameter can also be used to specify the primary key:
Remove-Exchange -Connection $conn -Table "exTablePowershell;" -Where "ItemId = AQMkAGRlMWQ5MDg0..."
The primary key can also be passed to the cmdlet along the pipeline:
Select-Exchange -Connection $conn -Table Contacts -Where "BusinessAddress_City = 'Raleigh'" | Remove-Exchange

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