def flush(self, indices=None, refresh=None):
self.conn.force_bulk()<EOL>path = self.conn._make_path(indices, '<STR_LIT>')<EOL>args = {}<EOL>if refresh is not None:<EOL><INDENT>args['<STR_LIT>'] = refresh<EOL><DEDENT>return self.conn._send_request('<STR_LIT:POST>', path, params=args)<EOL>
Flushes one or more indices (clear memory)
If a bulk is full, it sends it.

(See :ref:`es-guide-reference-api-admin-indices-flush`)


:keyword indices: an index or a list of indices
:keyword refresh: set the refresh parameter