'Removes all shares for this content_object and user combination'

def remove_shares_for_instance(self, content_object, user):

    shares = self.shares_for_instance(content_object, user)
    shares = shares.filter(completed_at__isnull=False, removed_at__isnull=True)
    shares = list(shares[:1000])
    logger.info('found    %s    shares    to    remove', len(shares))
    for share in shares:
        logger.info('removed    share    %s', share)
        try:
            share.remove()
        except (OAuthException, UnsupportedDeleteRequest) as e:
            logger.info('removing    share    failed,    got    error    %s', e)
