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