title: How can I delete all messages from one hangout chat/room by Hangout Chat API?
body: <p>I need to write Hangouts Bot which will delete all messages from the chat/room and after this send new one message. <a href="https://developers.google.com/hangouts/chat/reference/rest/v1/spaces.messages/delete" rel="nofollow noreferrer">Hangout API</a> provides a possibility to delete just one message by one request (with a known identifier). </p>
  
  <p>I wrote .sh file with the next code (sending message):</p>
  
  <pre><code>curl -X POST \
  -H 'Content-Type: application/json' \
  'https://chat.googleapis.com/v1/spaces/SPACE_ID/messages' \
  -d '{"text": "Message!"}'
  </code></pre>
  
  <p>How can I delete all messages from the chat before sending a new one? (by Hangouts API)</p>