Recursively Delete Directory Using SSH

This article will demonstrate the process of Recursively deleting an entire directory using SSH command line.

To begin, login to the server using SSH.

As the root user, run the following command

# rm -rf directoryname

Replace "directoryname" with the name of the directory to be deleted.

The directory is now deleted.

Was this answer helpful?

 Print this Article

Also Read

Setting Custom DNS/Name Servers on WHM/cPanel

If you are setting up WHM basic configuration, see step 1. If you have already completed WHM...

Setting Custom DNS/Name Servers on WHM/cPanel

If you are setting up WHM basic configuration, see step 1. If you have already completed WHM...

Install WGET on CentOS VPS or Dedicated Server

This article describes the process of installing wget on a new installation of CentOS Installing...

Install WGET on CentOS VPS or Dedicated Server

This article describes the process of installing wget on a new installation of CentOS Installing...

Removing cPanel Accounts with /scripts/removeacct Script

The /usr/local/cpanel/scripts/removeacct script terminates cPanel accounts from the command line....