Remove-DB2 Cmdlet
Deletes DB2 data.
Syntax
Remove-DB2 [parameters]
Remarks
The Remove-DB2 cmdlet allows you to use a syntax similar to SQL DELETE statements to delete DB2 data.
$conn = Remove-DB2 -Connection $conn -Table "`"Sample`".`"DB2INST1`".Books" -Id "22"The Where parameter can also be used to specify the primary key:
Remove-DB2 -Connection $conn -Table "exTablePowershell;" -Where "Id = 22"The primary key can also be passed to the cmdlet along the pipeline:
Select-DB2 -Connection $conn -Table "Sample"."DB2INST1".Books -Where "Category = 'US'" | Remove-DB2