I have loaded in a R console different type of objects. I can remove them all using
rm(list=ls())
or remove only the functions (but not the
You can use the following command to clear out ALL variables. Be careful because it you cannot get your variables back.
rm(list=ls(all=TRUE))