Remove-Presto Cmdlet
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