'Delete application logs stored by the logger component'

def _clean_app_logs(self):

    try:
        url = u'http://{}:{}/{}/'.format(settings.LOGGER_HOST, settings.LOGGER_PORT, self.id)
        requests.delete(url)
    except Exception as e:
        err = u'Error    deleting    existing    application    logs:    {}'.format(e)
        log_event(self, err, logging.WARNING)
