Recovering from a mistake.
STOP FIRST
Do not continue working. Further changes make recovery harder and may overwrite what you need.
CHECK THE OBVIOUS
cPanel File Manager has a trash function in some configurations. Check whether the files are there.
Check whether your FTP client or editor kept a local copy.
RESTORE FROM BACKUP
From JetBackup, browse the restore point and restore just the affected files. This is far better than restoring everything.
From your own archive, extract the specific files and upload them.
IF YOU DELETED THE WHOLE SITE
Restore files and database from the same backup date.
IF YOU HAVE NO BACKUP
Check whether we hold a restore point within your plan's retention. Open a ticket quickly, since retention is finite.
Check whether your local development copy or your repository has the files.
Check whether an archive service holds cached copies of your pages, which recovers content if not code.
PREVENTING RECURRENCE
Back up before working on files. Work on a staging copy for anything substantial.