Cmdlets for MariaDB

Build 24.0.9060

Remove-MariaDB Cmdlet

Parameters   Output Objects  

Deletes MariaDB data.

Syntax

Remove-MariaDB [parameters]

Remarks

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

$conn = Connect-MariaDB -User 'myUser' -Password 'myPassword' -Database 'NorthWind' -Server 'myServer' -Port 3306
Remove-MariaDB -Connection $conn -Table "Orders" -Id "10261"
The Where parameter can also be used to specify the primary key:
Remove-MariaDB -Connection $conn -Table "exTablePowershell;" -Where "Id = 10261"
The primary key can also be passed to the cmdlet along the pipeline:
Select-MariaDB -Connection $conn -Table Orders -Where "ShipCountry = 'USA'" | Remove-MariaDB

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