How to manually remove selectionLayer

I want to remove the selectionLayer of the selected area before the last ws disconnection after the ws is reconnected successfully。

How should I go about it?