code: func (b *Log) deleteAllItems() error {
  	out, err := b.svc.Scan(&dynamodb.ScanInput{TableName: aws.String(b.Tablename)})
  	if err != nil {
  		return trace.Wrap(err)
  	}
  	var requests []*dynamodb.WriteRequest
  	for _, item := range out.Items {
  		requests = append(requests, &dynamodb.WriteRequest{
  			DeleteRequest: &dynamodb.DeleteRequest{
  				Key: map[string]*dynamodb.AttributeValue{
  					keySessionID:  item[keySessionID],
  					keyEventIndex: item[keyEventIndex],
  				},
  			},
  		})
  	}
  	if len(requests) == 0 {
  		return nil
  	}
  	req, _ := b.svc.BatchWriteItemRequest(&dynamodb.BatchWriteItemInput{
  		RequestItems: map[string][]*dynamodb.WriteRequest{
  			b.Tablename: requests,
  		},
  	})
  	err = req.Send()
  	err = convertError(err)
  	if err != nil {
  		return trace.Wrap(err)
  	}
  	return nil
  }
docs: // deleteAllItems deletes all items from the database, used in tests