Cmdlets for Presto

Build 24.0.9060

Remove-Presto Cmdlet

Parameters   Output Objects  

Deletes Presto data.

Syntax

Remove-Presto [parameters]

Remarks

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

$conn = Connect-Presto -Server '127.0.0.1' -Port 9200
Remove-Presto -Connection $conn -Table "[Hive].[Default].Customers" -Id "1"
The Where parameter can also be used to specify the primary key:
Remove-Presto -Connection $conn -Table "exTablePowershell;" -Where "Id = 1"
The primary key can also be passed to the cmdlet along the pipeline:
Select-Presto -Connection $conn -Table [Hive].[Default].Customers -Where "Industry = 'Floppy Disks'" | Remove-Presto

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