def clear(self, asset_manager_id):
        """ This method deletes all the data for an asset_manager_id.
            It should be used with extreme caution.  In production it
            is almost always better to Inactivate rather than delete. """
        self.logger.info('Clear Market Data - Asset Manager: %s', asset_manager_id)
        url = '%s/clear/%s' % (self.endpoint, asset_manager_id)
        response = self.session.delete(url)
        if response.ok:
            eod_price_count = response.json().get('eod_price_count', 'Unknown')
            self.logger.info('Deleted %s EOD Prices.', eod_price_count)
            fx_rate_count = response.json().get('fx_rate_count', 'Unknown')
            self.logger.info('Deleted %s FX Rates.', fx_rate_count)
            return response.json()
        else:
            self.logger.error(response.text)
            response.raise_for_status()
def clear ( self , asset_manager_id ) : self . logger . info ( 'Clear Market Data - Asset Manager: %s' , asset_manager_id ) url = '%s/clear/%s' % ( self . endpoint , asset_manager_id ) response = self . session . delete ( url ) if response . ok : eod_price_count = response . json ( ) . get ( 'eod_price_count' , 'Unknown' ) self . logger . info ( 'Deleted %s EOD Prices.' , eod_price_count ) fx_rate_count = response . json ( ) . get ( 'fx_rate_count' , 'Unknown' ) self . logger . info ( 'Deleted %s FX Rates.' , fx_rate_count ) return response . json ( ) else : self . logger . error ( response . text ) response . raise_for_status ( )
This method deletes all the data for an asset_manager_id.
            It should be used with extreme caution.  In production it
            is almost always better to Inactivate rather than delete.