tmp <- 1:4
## work with tmp and cleanup
rm(tmp)
## Not run:
# ## remove (almost) everything in the working environment.
# ## You will get no warning, so don't do this unless you are really sure.
# rm(list = ls())
# ## End(Not run)
Run the code above in your browser using DataLab