DataStax logo
Planet Cassandra Community
  • Support
  • Blog
  • Resources
  • Careers
  • Contact Us
  • Big Data Challenges
    • Overview
  • Customers
    • Overview
  • What We Offer
    • Overview
    • DataStax Enterprise
    • DataStax OpsCenter
    • Support
    • Training
    • Consulting
  • Developer Center
    • Overview
    • Quick Start Guide
    • Documentation
    • Support Forums
    • Developer Blog
    • Tutorials
  • Company
    • About DataStax
    • Management
    • Press Releases
    • In the News
    • Events
    • Investors
    • Partners
    • MVP Program
    • Careers
    • Contact Us
  • Download
    • DataStax
    • Documentation

    Apache Cassandra 1.1 Documentation

    « SELECT
    UPDATE »

    TRUNCATE¶

    Back to Table of Contents
    All Documents List

    Removes all data from a column family.

    Synopsis¶

    TRUNCATE [keyspace.]<column_family>;
    

    Description¶

    A TRUNCATE statement results in the immediate, irreversible removal of all data in the named column family.

    Example¶

    TRUNCATE user_activity;
    

    CQL Commands

    CQL Commands CQL Shell Commands
    ALTER TABLE ASSUME
    ALTER KEYSPACE CAPTURE
    BATCH COPY
    CREATE TABLE DESCRIBE
    CREATE INDEX EXIT
    CREATE KEYSPACE SHOW
    DELETE SOURCE
    DROP TABLE  
    DROP INDEX  
    DROP KEYSPACE  
    INSERT  
    SELECT  
    TRUNCATE  
    UPDATE  
    USE  
    « SELECT
    UPDATE »
    Announcements
    < >
    • Why Hadoop and Solr in DataStax Enterprise?
    • Cassandra Summit 2013 — Amazing!
    • Confessions of an Oracle DBA – Part 3
    • Confessions of an Oracle DBA – Part 2
    • Confessions of an Oracle DBA – Part 1

    Big Data Challenges

      Customers

        What We Offer

        • DataStax Enterprise
        • DataStax OpsCenter
        • Apache Cassandra
        • Apache Hadoop
        • Apache Solr
        • Support
        • Training
        • Consulting

        Developer Center

        • Quick Start Guide
        • Documentation
        • Support Forums
        • Developer Blog
        • Tutorials

        About DataStax

        • Management
        • Press Releases
        • In the News
        • Events
        • Investors
        • Partners
        • MVP Program
        • Careers
        • Contact Us

        Download

          Blog

            Resources

            • Tutorials
            • Customer Case Studies
            • Data Sheets
            • Webinars
            • White Papers
            • Videos
            • FAQ
            • Facebook
            • Twitter
            • Google+
            • Bog
            • © 2013 DataStax, All rights reserved.
            • Terms of Use
            • Privacy Policy
            • Site Credits