If you accidentally deleted important files on your iPhone and hope to get them back, you can restore iPhone from an iTunes backup.
An iTunes backup is a great way to keep the data on your iOS device safe from loss. It is always important to back up all the data on your iPhone or iPad. How to Change iTunes Backup Location on Windows and Mac