code: public boolean truncate() throws TTException {
          checkState(!mClosed, "Session must be opened to truncate.");
          waitForRunningCommit();
          if (mResourceConfig.mBackend.truncate()) {
              // Forcibly close all open transactions.
              for (final IBucketReadTrx rtx : mBucketTrxs) {
                  rtx.close();
              }
              // Immediately release all resources.
              mLastCommittedUberBucket = null;
              mBucketTrxs.clear();
              mDatabase.mSessions.remove(mSessionConfig.getResource());
              mClosed = true;
              return IOUtils.recursiveDelete(new File(new File(mDatabase.getLocation(),
                  StorageConfiguration.Paths.Data.getFile().getName()), mSessionConfig.getResource()));
          } else {
              return false;
          }
      }
docs: {@inheritDoc}