Cassandra – Delete Data

In this tutorial, we will learn about the DELETE command in Cassandra which allows to remove one or more columns data in a table and also it removes entire row if no column is specified.

Syntax:

DELETE column_name, ... | ( column_name term )
FROM keyspace_name.table_name
USING TIMESTAMP integer
WHERE row_specification

Example:

DELETE email FROM users WHERE user_id = '1020';

Validate Data:

Select * from users;