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.