If you no longer need the drive, you don't just delete the files inside it (that would delete them from the server!).
In the left-hand navigation pane, right-click on This PC . From the context menu that appears, select Map network drive… win11 map network drive