Cmdlets for Microsoft Access

Build 23.0.8839

Remove-Access Cmdlet

Parameters   Output Objects  

Deletes Microsoft Access data.

Syntax

Remove-Access [parameters]

Remarks

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

$conn = Connect-Access -DataSource 'C:\my.accdb'
Remove-Access -Connection $conn -Table "Orders" -Id "10261"
The Where parameter can also be used to specify the primary key:
Remove-Access -Connection $conn -Table "exTablePowershell;" -Where "Id = 10261"
The primary key can also be passed to the cmdlet along the pipeline:
Select-Access -Connection $conn -Table Orders -Where "ShipCountry = 'USA'" | Remove-Access

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