Use Selection.Clear or Selection::Clear:
// C++ API Selection sel( Application().GetSelection() ); sel.Clear(); // C# CXSIApplication app = new CXSIApplication(); Selection sel = app.Selection; sel.Clear(); // JScript Selection.Clear(); ' VBScript Selection.Clear # Python Application.Selection.Clear() # Perl $Application->Selection->Clear();