A way to clear the search spec
Siebel has 2 kinds of search spec: User Search Spec(User entered in applet and Set by using SetSearchExpr in scripts), Named Search Spec(Configured in Tools and PDQ and Set by using SetNamedSearchExpr in scripts)
The first can be removed using ClearToQuery()
The second one can be removed by using SetNamedSearchExpr(Name,"");
Here is the list of Name of NamedSearchSpec
Applet: Applet Search Spec Named Search
BC: System Search
Visibility: VisibilitySearch
Picklist ; PickListSearch
Link: Link Search Spec Named Search
drilldown: Drill Down By Id Named Search