If you accidentally delete a file or folder in OneDrive, you may can recover it from the OneDrive recycle bin. Deleted items stay in recycle bin for 30 days or until user manually empties recycle bin (not recommended). To recover deleted file:
Watch this short instructional video: Delete and restore files in OneDrive