Cmdlets for Teradata

Build 24.0.8963

Remove-Teradata Cmdlet

Parameters   Output Objects  

Deletes Teradata data.

Syntax

Remove-Teradata [parameters]

Remarks

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

$conn = Connect-Teradata -User 'Admin' -Password 'test123' -Database 'Northwind' -DataSource '127.0.0.1'
Remove-Teradata -Connection $conn -Table "`"CData`".`"dbo`".NorthwindProducts" -Id "1"
The Where parameter can also be used to specify the primary key:
Remove-Teradata -Connection $conn -Table "exTablePowershell;" -Where "ProductId = 1"
The primary key can also be passed to the cmdlet along the pipeline:
Select-Teradata -Connection $conn -Table "CData"."dbo".NorthwindProducts -Where "CategoryId = '5'" | Remove-Teradata

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