Recursively Delete Directory Using SSH


This article will demonstrate the process of recursively deleting a directory and its contents from the 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.

  • ssh commands, command line
  • 149 brukere syntes dette svaret var til hjelp
Var dette svaret til hjelp?

Related Articles

Forcefully Delete an IP Address from SolusVM

If at any point you find you have an orphaned ipaddress, you can delete it by running the...

Do You Offer a Hardware Firewall Solution?

Yes, we have a very limited selection of hardware firewalls available. We appreciate the specific...

What Server Virtualization Are Your Hypervisors?

All VPS hypervisors use KVM virtualization technology. Order here: KVM VPS servers

Video: How to Check Whether the VPS Status is Online or Offline in Virtualizor

This video tutorial provides Step-by-Step instructions for how to check whether the VPS status is...

Video: How to Check VPS RAM, IP, Disk Capacity and the Virtualization Details in Virtualizor

This video tutorial provides Step-by-Step instructions for how to check VPS RAM, IP, disk...