       title    : 'REMOVE LINK'
       callback : =>
         listItems = @leafChannelsListController.getListItems()
-        console.log item for item in listItems
-        #listItems?.forEach (item)->
-          #console.log item
-        #console.log listItems
-      
+        for item in listItems when item.switcher.getValue() is true
+          options = 
+            rootId  :  data.id
+            leafId  : item.getData().id
+          console.log data.id
+          console.log item.getData().id
+          kd.singletons.socialapi.moderation.unlink options, (err, @item) =>
+            console.log arguments
+            if err
+              console.log "no leaf channel found for #{data.id}, #{data.name}"
+              
      
     @settings.addSubView new KDCustomHTMLView
       cssClass: 'solid compact'

    
    super options, data
    
    @typeLabel = new KDCustomHTMLView
      cssClass : 'role'
      partial  : "Moderate <span class='settings-icon'></span>"
      click    : =>
        @settings.toggleClass  'hidden'
        @typeLabel.toggleClass 'active'
    
    @createSettingsView(data)
  
  createLeafItemViews: (data) ->

KDHitEnterInputView  = kd.HitEnterInputView

TopicLeafItemView    = require './topicleafitemview'
SelectableItemView      = require './selectableitemview'

module.exports = class TopicItemView extends KDListItemView

