Remove-Access Cmdlet
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