if the object does not exist an error will not happen.
ifrm(obj, env = globalenv())
obj
the object that you want to remove
env
The global environment
a = 5 ifrm(a) ifrm(b)