A<-"Test" # Put some data into workspace, to see how rm(list=ls()) removes it A <- "Test" # Note that you can use a space before or after <- A = "Test" # <- or = can be used equally # Note that it is best practice to use "<-" for assignment instead of "=" A rm(list=ls()) A