Delete data

Data can be deleted from tables. Many different types of data can be deleted from CQL tables.

Inserting and updating data in CQL is really the same thing. Data can be upserted, meaning that the previously stored data is deleted and replaced with the updated data.

Deleting values from a column or entire row

Use the DELETE statement to replace the value in a column with null or to remove an entire row of data.

Expiring data with time-to-live

Use time-to-live (TTL) to expire data in a column or table.

Was this helpful?

Give Feedback

How can we improve the documentation?

© 2024 DataStax | Privacy policy | Terms of use

Apache, Apache Cassandra, Cassandra, Apache Tomcat, Tomcat, Apache Lucene, Apache Solr, Apache Hadoop, Hadoop, Apache Pulsar, Pulsar, Apache Spark, Spark, Apache TinkerPop, TinkerPop, Apache Kafka and Kafka are either registered trademarks or trademarks of the Apache Software Foundation or its subsidiaries in Canada, the United States and/or other countries. Kubernetes is the registered trademark of the Linux Foundation.

General Inquiries: +1 (650) 389-6000, info@datastax.com