Remove-Cassandra Cmdlet
Deletes Cassandra data.
Syntax
Remove-Cassandra [parameters]
Remarks
The Remove-Cassandra cmdlet allows you to use a syntax similar to SQL DELETE statements to delete Cassandra data.
$conn = Connect-Cassandra -Database 'MyCassandraDB' -Port 9042 -Server '127.0.0.1' Remove-Cassandra -Connection $conn -Table "`"CData`".`"Sample`".Products" -Id "1"The Where parameter can also be used to specify the primary key:
Remove-Cassandra -Connection $conn -Table "exTablePowershell;" -Where "Id = 1"The primary key can also be passed to the cmdlet along the pipeline:
Select-Cassandra -Connection $conn -Table "CData"."Sample".Products -Where "Industry = 'Floppy Disks'" | Remove-Cassandra