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

How to Bind Additional IPs to Network Interface Card - CentOS

This article explains the process of binding multiple IP addresses to the Network Interface Card...

Reboot Linux Server Using SSH

This article provides a guide for Rebooting a Linux-based VPS or Dedicated Server Using the SSH...

Disable Network Manager on CentOS 7

This article will provide the steps to disable Network Manager in CentOS 7. Network Manager is...

Removing cPanel Accounts with /scripts/removeacct Script

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

Resolve "Configure: Error: No Acceptable C Compiler Found in $PATH"

When installing software to your Ubuntu VPS or Dedicated Server, you may encounter an error:...