Apache.Cassandra.Cassandra.Client.truncate C# (CSharp) Method

truncate() public method

Truncate will mark and entire column family as deleted. From the user's perspective a successful call to truncate will result complete data deletion from cfname. Internally, however, disk space will not be immediatily released, as with all deletes in cassandra, this one only marks the data as deleted. The operation succeeds only if all hosts in the cluster at available and will throw an UnavailableException if some hosts are down.
public truncate ( string cfname ) : void
cfname string
return void
      public void truncate(string cfname)
      {
        #if !SILVERLIGHT
        send_truncate(cfname);
        recv_truncate();

        #else
        var asyncResult = Begin_truncate(null, null, cfname);
        End_truncate(asyncResult);

        #endif
      }
      #if SILVERLIGHT
Cassandra.Client