code: def clear(self):
          
          url = "queues/%s/messages" % self.name
          result = self.client.delete(url = url,
                                      body = json.dumps({}),
                                      headers={'Content-Type': 'application/json'})
  
          return result['body']
docs: Executes an HTTP request to clear all contents of a queue.