Remove-AlloyDB Cmdlet
Deletes AlloyDB data.
Syntax
Remove-AlloyDB [parameters]
Remarks
The Remove-AlloyDB cmdlet allows you to use a syntax similar to SQL DELETE statements to delete AlloyDB data.
$conn = Connect-AlloyDB -User 'alloydb' -Password 'admin' -Server '127.0.0.1' -Port '5432' -Database 'alloydb' Remove-AlloyDB -Connection $conn -Table "`"alloydb`".`"schema01`".Orders" -Id "10261"The Where parameter can also be used to specify the primary key:
Remove-AlloyDB -Connection $conn -Table "exTablePowershell;" -Where "Id = 10261"The primary key can also be passed to the cmdlet along the pipeline:
Select-AlloyDB -Connection $conn -Table "alloydb"."schema01".Orders -Where "ShipCountry = 'USA'" | Remove-AlloyDB