I wrote many codes in R and now I want to delete all of them.

You can click the broom icon to delete all.

But, you can use this code to delete all.
rm(list=ls())

Stories about crops and statistics (plus coding)
I wrote many codes in R and now I want to delete all of them.

You can click the broom icon to delete all.

But, you can use this code to delete all.
rm(list=ls())
