def clear(self, asset_manager_id, book_ids=None):
self.logger.info('<STR_LIT>', asset_manager_id)<EOL>url = '<STR_LIT>' % (self.endpoint, asset_manager_id)<EOL>params = {'<STR_LIT>': '<STR_LIT:U+002C>'.join(book_ids)} if book_ids else {}<EOL>response = self.session.delete(url, params=params)<EOL>if response.ok:<EOL><INDENT>tran_count = response.json().get('<STR_LIT>', '<STR_LIT>')<EOL>self.logger.info('<STR_LIT>', tran_count)<EOL>pos_count = response.json().get('<STR_LIT>', '<STR_LIT>')<EOL>self.logger.info('<STR_LIT>', pos_count)<EOL>return response.json()<EOL><DEDENT>else:<EOL><INDENT>self.logger.error(response.text)<EOL>response.raise_for_status()<EOL><DEDENT>
This method deletes all the data for an asset_manager_id
            and option book_ids.
            It should be used with extreme caution.  In production it
            is almost always better to Inactivate rather than delete.