def DeleteOldFeedItems(client, feed_item_ids, feed):
 if (not feed_item_ids):
  return
 feed_item_service = client.GetService('FeedItemService', 'v201607')
 operations = [{'operator': 'REMOVE', 'operand': {'feedId': feed['id'], 'feedItemId': feed_item_id}} for feed_item_id in feed_item_ids]
 feed_item_service.mutate(operations)

def DeleteOldFeedItems ( client , feed_item_ids , feed ) : if ( not feed_item_ids ) : return feed_item_service = client . GetService ( 'FeedItemService' , 'v201607' ) operations = [ { 'operator' : 'REMOVE' , 'operand' : { 'feedId' : feed [ 'id' ] , 'feedItemId' : feed_item_id } } for feed_item_id in feed_item_ids ] feed_item_service . mutate ( operations )
deletes the old feed items for which extension settings have been created .