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.2 Documentation

    « SELECT
    UPDATE »

    TRUNCATE¶

    The Cassandra 1.2 documentation is transitioning to a new format!
    Please use the new Cassandra 1.2 documentation instead.
    Back to Table of Contents
    CQL Commands Table of Contents

    Removes all data from a table.

    Synopsis¶

    TRUNCATE keyspace_name.table_name
    

    Synopsis legend

    Description¶

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

    Example¶

    TRUNCATE user_activity;
    
    « 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