I want to recursively delete a folder and am unable to do that via cPanel File Manager. Can you enable root access for me?
Root access is not something customers in your hosting tier have access to.
It requires access to cPanel & WHM as the owner of a private virtual or dedicated server/machine.
Every web hosting account on our platform has access to the shell.
So this is something you can easily do via the Terminal.
To do that, log in to cPanel.
Scroll to Advanced and click the Terminal for cPanel.
You can use this interface to access an in-browser terminal application for direct command-line access within a cPanel session.
Once in, locate your present working directory by typing in:
pwd
To remove a folder, simply type in:
rm -rf $folderName
If the folder is in your public folder (public_html), then either:
cd public_html && rm -rf $folderName
or:
rm -rf public_html/$folderName
After completing the task, terminate the session in the Terminal interface by typing:
exit
To open another session, click Reconnect.
You can also open a ticket and tell us the folder name so we can remove it for you.
Having said that, you can definitely remove an entire folder (as you can do with files) with its contents via cPanel File Manager.
To delete a file or folder, perform the following steps:
- Select the file or folder you want to delete.
- In the toolbar, click Delete. The Trash interface will appear.
- Click Confirm to confirm that you want to delete the file or folder.
To restore a file or folder, perform the following steps:
- Click View Trash from the toolbar.
- Select the file or folder that you want to restore.
- Click Restore in the toolbar.
When you delete files or folders, the system does not irrevocably delete the files. Instead, the system moves the files to the Trash folder.
Click Empty Trash to completely delete the Trash folder’s contents.
You can also use this to clear out the trash before backing up your account.
If for any reason you are unable to do that, please tell us more about this so we can check it for you.