delete directory command in terminal code example Example: remove directory and contents rm -R directory