Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Equivalent of R's `rm(list=ls())` in Julia

Is there any equivalent to R's rm(list=ls()) (which removes every object in the global environment) in Julia?

like image 836
Álvaro A. Gutiérrez-Vargas Avatar asked Sep 01 '25 01:09

Álvaro A. Gutiérrez-Vargas


1 Answers

It is currently not possible. See Delete full workspace or one variable in julia for the explanation of the current status of the issue (in short - the currently recommended practice is to wrap the code you use in a module and Julia will allow you to replace this module).

like image 167
Bogumił Kamiński Avatar answered Sep 02 '25 17:09

Bogumił Kamiński