Trilium Backend API
    Preparing search index...
    • Removes the set of matched elements from the DOM and all their children. selector filters the set of matched elements to be removed.

      Type Parameters

      Parameters

      • this: Cheerio<T>
      • Optionalselector: string

        Optional selector for elements to remove.

      Returns Cheerio<T>

      The instance itself.

      $('.pear').remove();
      $.html();
      //=> <ul id="fruits">
      // <li class="apple">Apple</li>
      // <li class="orange">Orange</li>
      // </ul>