def clear_messages(self, queue_name, timeout=None):
_validate_not_none('<STR_LIT>', queue_name)<EOL>request = HTTPRequest()<EOL>request.method = '<STR_LIT>'<EOL>request.host_locations = self._get_host_locations()<EOL>request.path = _get_path(queue_name, True)<EOL>request.query = {'<STR_LIT>': _int_to_str(timeout)}<EOL>self._perform_request(request)<EOL>
Deletes all messages from the specified queue.

:param str queue_name:
    The name of the queue whose messages to clear.
:param int timeout:
    The server timeout, expressed in seconds.