If you by mistake deleted files from GoPro Hero camera, do not worry, download GoPro Hero camera data recovery software. Here's a good one
GoPro Hero camera data recovery solution
The GoPro Hero data recovery software is able to recover deleted and formatted photos and videos from GoPro Hero camera memory card, sd card, microsd card, sdhc, sdxc, sd mini, cf card. You can restore deleted and formatted files from GoPro Hero action cameras, such as GoPro hero 9, GoPro Hero 8, GoPro Hero 7, GoPro Hero 6, GoPro Hero Max, GoPro Hero Session, etc.
The GoPro hero video recovery program is able to restore deleted HD videos such as mp4, mov, avchd, mkv, avi and other HD videos from GoPro Hero action cameras and camcorders.
More information
How to download videos from Youtube