rm(..., list=character(), pos = -1, envir = as.environment(pos),
   inherits = FALSE)
remove(..., list=character(), pos = -1, envir = as.environment(pos),
       inherits = FALSE)
| ... | the names of the objects to be removed. The arguments are not evaluated. The corresponding objects should be in the working directory. | 
| list | a vector of character strings of the object names to be removed. Note: Despite the name of this argument, it should be a vector. | 
| pos | an integer. Specifies the position of the environment from which to remove the objects. | 
| envir | the environment from which the objects are removed. If NULL, the currently-active environment is used. | 
| inherits | a logical flag. If TRUE, the enclosing frames of the environment are inspected. The default is FALSE. | 
x <- 1:2 y <- 1:3 z <- 1:5 rm(x, y, z) # remove objects x,y,z from the global environmentz7 <- 1:7 # Work with z7 and then cleanup: rm(z7)