remove directory and all its contents code example Example: remove directory and contents rm -R directory