To remove all modules and connections from the NetEdit frame, select the Clear item from the main window's File menu. A text box appears, confirming whether the user wants to proceed with or cancel the clearing operation.