yword">this</span>.remove()
});</code></pre></div> </div><div class="qm-html-paragraph">In most cases this should be sufficient. Should you want to apply some transition when elements are removed, then a different exit function can be provided that changed the way that elements are removed. </div><div class="qm-html-paragraph">The enter function supplied has a this context which is a Selection which has the element that is to be removed selected. This is why this.remove() is called as the default behaviour.