title: How to Remove the addPreSearch Filter
body: <p>I am trying to remove the PreSearch filer and my code is as below. How can I achieve the same?</p>
  
  <pre><code>Xrm.Page.getControl("productid").removePreSearch(function () {
      Object
  });
  
  Xrm.Page.getControl("productid").addPreSearch(function () {
      fetchxml2();
  });
  
  function fetchxml2() {
      var fetchXml1 = "&lt;filter type='and'&gt;"
      fetchXml1 += "&lt;condition attribute='productid' operator='in' &gt;";
      for (var i = 0; i &lt; Itemid.length; i++) {
          fetchXml1 += "&lt;value&gt;" + Itemid[i] + "&lt;/value&gt;";
      }
  
      fetchXml1 += "&lt;/condition&gt;";
      fetchXml1 += "&lt;/filter&gt;";
      Xrm.Page.getControl("productid").addCustomFilter(fetchXml1);
      //Xrm.Page.getControl("productid").removePreSearch(fetchXml1);
  
  };
  </code></pre>