https://stackoverflow.com/questions/45853595/spyder-clear-variable-explorer-along-with-variables-from-memory#
Go to the IPython console in the Spyder IDE and type %reset. It will prompt you to enter (y/n) as the variables once deleted cannot be retrieved. Type 'y' and hit enter. That's it.