What is the difference between rm() and rm(list=ls())?

Most of articles, I have read. They recommend to use rm(list=ls()) but I do not know what is the difference if I like to use rm()

Can I use rm() instead of rm(list=ls()) if i would like to clear all variables?

Please give me some advices. Thanks.

Leave a Comment