GUIDE DELETE FILES IN CPANEL HOW DO I DO IT? 2020 -WAU

Home/Posts/Administración del Hosting/GUIDE DELETE FILES IN CPANEL HOW DO I DO IT? 2020 -WAU

Delete files in cPanel

To talk of delete files We must also do it about how File Manager works in cPanel, Trash and file search, among others.

In this article I tell you how Delete files in cPanel once you no longer need them, or because you are taking up more space than the contracted and you need to free up space in your Hosting account.

Something that may seem simple to do is very likely that users who start in web projects many of the elements that make up a Hosting Panel find it difficult, and that is why having a short guide that explains how to do it. and with what tools, they will allow you to make tasks in cPanel more comfortable and faster to carry out.

What are you going to see in this article?

  • How to delete files from Hosting?
  • Where you can delete and where you shouldn’t
  • The trash can
  • Find out where are the files to delete
  • How to delete files from File Manager

It is important that always before carrying out tasks that involve the removal of files or folders from your Hosting make a backup; a task that takes 2 minutes to complete and that can save you a lot of headaches later if by mistake or ignorance you delete something that you should not have eliminated.

How to delete files from Hosting?

Basically there are three methods to accomplish this:

  1. From the File Manager from the Hosting Panel.
  2. From a client of FTP (Filezilla, CyberDuck, etc.)
  3. From your CMS through an extension or plugin (Filemanager).
  4. There would be a fourth method reserved for Administrators with access to the server: SSH.

Any of the three mentioned methods is valid for:

Although file management from the backend or dashboard of a CMS it is less recommended since it acts as a ‘filemanager’ that depends on the possible limitations imposed by the server to perform certain tasks with files and / or folders.

Where you can delete and where you shouldn’t

Here comes into play the fear of rolling it brown,yes!, and it is very legitimate that you have such fears, especially if yours is not dealing with folders or directories and data structures of a Hosting.

But the fear I hope you dissipate it once you read this, because in the end it is not so difficult, or less so than throwing a paper from your table in the trash or deleting a photo from your mobile, in the end it is data “in format digital ”but ultimately“ data ”.

Folders in which you should take extreme measures before deleting files:

  • /home/ or / home2 / (depends on the server where you stay, based on cPanel).
  • /home// mail where the folders of managed email accounts are stored in your Hosting account.
  • /home//cache where the Hosting cache files are stored (not from the hosted websites).
  • /home// ssl where the information of SSL Certificates installed in the Hosting is stored.
  • /home//cpmove.psql the cPremote Backup Management tool.
  • /home//etc store of user data and passwords for the Hosting services.
  • /home// logs all log files collected on the server for your Hosting account.
  • /home// tmp stores the temporary files generated by Webalizer, Analog, Awstat, etc.
  • /home// tmp_user User session temporary store.
  • /home// var / cpanel / styled / current_style where custom cPanel styles are stored.
  • /home// access-logs access log store.

Folders where you can manage files / folders without problems:

  • /home// public_ftp It is the native FTP folder of the Hosting generated by default when the account is created.
  • /home// public_html It is the “star” folder of your Hosting and where all your websites are stored.
  • /home// vmsafe if you use VirtueMart (folder used by the component for Joomla).
  • /home// moodledata if you use Moodle (folder used by Moodle).
  • /home// www it is a symbolic link to / public_html which is the physical folder. There are no two folders (www and public_html) but only / public_html with www being the symbolic link.

Obviously the star folder and on which you must focus your efforts is / public_html, where your websites are stored, have one or fifteen, keeping in mind that only the files and folders of the websites are stored and not the databases.

Most servers separate the management of databases, either within the same server, but in folders outside of / home (or / home2) where the user who manages Hosting accounts does not have access, or on a database server of specific and physically separated data from the client Hosting account server (OVH case).

So when asked What can i remove to free up space?, you already have a place to start digging, it’s called / public_html And as I already told you, it is where you have your websites, which, as a general rule, are the ones that occupy most of the space of the Hosting, unless you use email a lot and have one or several email accounts with hundreds of emails and abundant attachments.

The trash can

It plays an important role in the process of freeing up hosting space, especially if you work with the ‘skin’ for cPanel paper_lantern since from the File Manager You will have access to it to be able to empty it.

Check in this article how to manage your Hosting Trash with cPanel and the skin “paper_lanter:”

Find out where are the files to delete

In order to delete files or folders (or both) in your Hosting you must first know where to find them.

A clue of which files take up a lot of space in your Hosting can be given by Stephan, a script that Websites Are Us clients enjoy from their Client Area and that helps them solve problems detected in Hosting accounts.

Well, this script, one of the information that it usually provides, is the detection of files that take up a lot of space in the Hosting, such as backups, an error file error_log with excessive growth, large multimedia files, etc.

We have found the following files that occupy more than 10 MB, if you have space problems you may want to download them to your computer and delete them from the server:

83 MB in the file /home/usuario/.trash/site-www.sitio-web.com-20160416-122257.zip dated Apr 16 17:26
83 MB in the file /home/usuario/public_html/site-www.sitio-web.com-20160416-122257.zip dated May 10 01:06
83 MB in the file /home/usuario/public_html/administrator/components/com_akeeba/backup/site-www.sitio-web.com-20160423-151143.zip dated Apr 23 20:16
23 MB in the file /home/usuario/public_html/sitio-web.com/quick_start_vp_merchant-2.1.zip dated Apr 26 19:22

This notice from Stephan indicates not only the size of several of the files greater than 10MB detected that you should download and delete from the Hosting to free up space, but it also tells you what type of files it is, in this case they are 3 backups and a ‘quickstart’ file.

You also get information about the folder where they are located, which makes it easier for you to search for those files later from the File Manager from your cPanel.

In this case the backup path would be /home/user/.trash/, that is, a folder “hidden” outside of / public_html, that is, one level below it. It also indicates that the “quickstart” .zip packaged file is located in the folder /public_html/site-web.com Hosting.

There is no point in saving backup copies in the Hosting, mainly because if you delete files or folders by mistake (it usually happens by FTP or if you delete an FTP account associated with / public_html “without looking”) or files from web installations (quickstart) that you have already used, you will also be deleting those backup copies “losing them” in this process.

How to delete files from File Manager

Now you know a way to locate files that take up a lot of space “If you are a Websites Are Us customer”, otherwise you will have to resort to Disc Viewer (Disk Use), in your cPanel, Files, to detect folders that have a large size as it will be a sign that there are large files or many smaller files that take up a lot of space.

If you want to know how the Disc Viewer works, Jhon Marreros He tells you in this video:

The next thing is to go to the folder where you have files that you want to delete to select them and proceed to their deletion (or previous download to your computer).

Delete files in cPanel

In this example, backup files generated with the XCloner plugin have been selected, in a WordPress installation, which have first been downloaded to the computer and are now selected to be removed from the Hosting.

If your website uses extensions or plugins to manage backups, it is better that you delete the backups from the extension (Akeeba Backup for example) or from the plugin (XCloner for example) instead of from the File Manager from your Hosting Panel.

You can select several files or folders at the same time, within the same screen of the File Manager keeping the Control key pressed and using the mouse you select them to later eliminate them.

Delete files in cPanel

If you work with Image Galleries, either in WordPress or Joomla, it is not recommended that you massively delete the images you do not need from the File ManagerIn these cases, it is recommended that you do it from the CMS extension or plugin and always after a backup copy.

Check out in this article how to make a copy of the Media Library in WordPress:

As you have been able to verify, managing files in your Hosting Panel (cPanel) is a simple task, which only requires caution, make backup copies before deleting files or folders, and then use the File Manager to eliminate those unnecessary files in your Hosting.

Member of the Websites Are Us technical team.
Coordinator of content on the Blog and YouTube.
Technical support in CyberProtector. Teacher at Websites Are Us Learning.

By |2020-07-09T14:23:23+00:00May 12th, 2020|Administración del Hosting|