code: def purge(context, resource, **kwargs):
      
      uri = '%s/%s/purge' % (context.dci_cs_api, resource)
      if 'force' in kwargs and kwargs['force']:
          r = context.session.post(uri, timeout=HTTP_TIMEOUT)
      else:
          r = context.session.get(uri, timeout=HTTP_TIMEOUT)
      return r
docs: Purge resource type.