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
- Log in to cPanel and open Files > File Manager.
- Select View Trash from the toolbar.
- 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
- Select the required item and choose Restore or Restore Files, as shown by your version.
- Review the destination and confirm restoration.
- If a file already exists at that location, preserve it and resolve the conflict deliberately rather than overwriting it without checking.
- Open the original directory and confirm that the item has returned.
- 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.