Softimage SDK Programmer's Guide > Working with the SDK > Selection > Manipulating the Selection >

# Deselecting Everything (Clearing the Selection)

- 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()

## Related Scripting Commands

- DeselectAll

- DeselectAllUsingFilter

- ShrinkSelection, InvertSelection

- DeactivateElements, ToggleActiveElements, SetAndToggleActiveElements