OneDrive does not delete files from your local computer unless you have specifically configured it to do so. It is possible that the files were deleted from OneDrive and then synced to your local computer, resulting in their deletion from your hard drive. OneDrive has a recycle bin similar to the one available in Windows, where deleted files are moved and kept for a designated time before being permanently deleted. For work or school accounts, deleted files are purged after 93 days unless configured otherwise. You can restore deleted files from the recycle bin in OneDrive. Additionally, OneDrive has a feature called Files Restore that lets users restore files to any point over the past 30 days. For more information about these features, see the following links:
References: