

def purge_content(self, account_id, urls):
    'Purges one or more URLs from the CDN edge nodes.\n\n        :param int account_id: the CDN account ID from which content should\n                               be purged.\n        :param urls: a string or a list of strings representing the CDN URLs\n                     that should be purged.\n        :returns: true if all purge requests were successfully submitted;\n                  otherwise, returns the first error encountered.\n        '
    if isinstance(urls, six.string_types):
        urls = [urls]
    for i in range(0, len(urls), MAX_URLS_PER_PURGE):
        result = self.account.purgeCache(urls[i:(i + MAX_URLS_PER_PURGE)], id=account_id)
        if (not result):
            return result
    return True

dataset/ETHPy150Open softlayer/softlayer-python/SoftLayer/managers/cdn.py CDNManager.purge_content/original