cPanel’s File Manager can restore files that were moved to its Trash. This is useful after an accidental deletion, provided the files have not been permanently removed.

Find the deleted item

  1. Log in to cPanel and open Files > File Manager.
  2. Select View Trash from the toolbar.
  3. Find the intended file or directory and check its original location.

Trash is not a backup. Files removed through SSH, FTP, an application or an option to bypass Trash may not appear here.

Restore the item

  1. Select the required item and choose Restore or Restore Files, as shown by your version.
  2. Review the destination and confirm restoration.
  3. If a file already exists at that location, preserve it and resolve the conflict deliberately rather than overwriting it without checking.
  4. Open the original directory and confirm that the item has returned.
  5. Test the affected website or application.

If the item is absent or Trash has been emptied, use a suitable backup or ask the provider about available recovery points. Restoring a file does not automatically restore related database changes.