title: kafka records aren't being deleted
body: <p>I'm trying to delete kafka records from a topic by doing below:</p>
  
  <pre><code>bin/kafka-delete-records.sh --bootstrap-server myserver:myport --offset-json-file offset.json
  </code></pre>
  
  <p>my offset.json looks like this:</p>
  
  <pre><code>{"partitions": [{"topic": "mytopic", "partition": 0, "offset": 127}], "version":1}
  </code></pre>
  
  <p>When I run the script I get the message below:</p>
  
  <pre><code>➜  local-kafka_2.12-2.0.0 bin/kafka-delete-records.sh --bootstrap-server myip:myport --offset-json-file offset.json
  Executing records delete operation
  Records delete operation completed:
  [2019-02-02 16:54:24,867] WARN [AdminClient clientId=adminclient-1] Connection to node -1 could not be established. Broker may not be available. (org.apache.kafka.clients.NetworkClient)
  partition: mytopic-0  error: org.apache.kafka.common.errors.TimeoutException: Timed out waiting for a node assignment.
  </code></pre>
  
  <p>I'm noticing that the records aren't actually deleted when I run the <code>kafka-consumer-group.sh</code></p>
  
  <p>My configs are as below:</p>
  
  <p><a href="https://i.stack.imgur.com/2hMvH.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/2hMvH.png" alt="enter image description here"></a></p>
  
  <p><strong>Question</strong></p>
  
  <ul>
  <li>What am I missing. Why aren't the kafka records from the topics deleting?</li>
  </ul>