code: public void delete(final boolean hardDelete) {
          if (hardDelete) {
              this.state = StreamState.HARD_DELETED.dbValue();
          } else {
              this.state = StreamState.SOFT_DELETED.dbValue();
          }
      }
docs: Marks the stream as deleted.
  
  @param hardDelete
  Hard or soft deletion.