Remove-ApachePhoenix Cmdlet
Deletes Apache Phoenix data.
Syntax
Remove-ApachePhoenix [parameters]
Remarks
The Remove-ApachePhoenix cmdlet allows you to use a syntax similar to SQL DELETE statements to delete Apache Phoenix data.
$conn = Connect-ApachePhoenix -URL 'http://localhost:8765' Remove-ApachePhoenix -Connection $conn -Table "[SampleCatalog_1].[SampleSchema_1].SampleTable_1" -Id "1"The Where parameter can also be used to specify the primary key:
Remove-ApachePhoenix -Connection $conn -Table "exTablePowershell;" -Where "Id = 1"The primary key can also be passed to the cmdlet along the pipeline:
Select-ApachePhoenix -Connection $conn -Table [SampleCatalog_1].[SampleSchema_1].SampleTable_1 -Where "Industry = 'Floppy Disks'" | Remove-ApachePhoenix