CData Cmdlets for Amazon Redshift 2019 - Online Help
Questions / Feedback?

Remove-Redshift Cmdlet

CData Cmdlets for Amazon Redshift 2019 - Build 19.0.7354

Parameters   Output Objects  

Deletes Redshift data.

Syntax

Remove-Redshift [parameters]

Remarks

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

$conn = Connect-Redshift -User 'admin' -Password 'admin' -Server 'examplecluster.my.us-west-2.redshift.amazonaws.com' -Port '5439' -Database 'dev'
Remove-Redshift -Connection $conn -Table "Orders" -Id "10261"
The Where parameter can also be used to specify the primary key:
Remove-Redshift -Connection $conn -Table "exTable;" -Where "Id = 10261"
The primary key can also be passed to the cmdlet along the pipeline:
Select-Redshift -Connection $conn -Table Orders -Where "ShipCountry = 'USA'" | Remove-Redshift

 
 
Copyright (c) 2020 CData Software, Inc. - All rights reserved.
Build 19.0.7354.0