When you delete a file or folder on OneDrive with one device, you won't be able to find it on your other devices. All deleted files go into the Recycle bin, where you have a chance to restore it. Select the file or files you want to delete. Select Delete. The files move to the Recycle bin.You do not need to keep your documents on OneDrive as well as on your PC.>Open File Explorer>Click on the Blue OneDrive icon>Right click on any folder or file>In the menu click on 'Clear Space'. This will remove the folder or file from your computer. If you open the document later you will need to use clear space to remove it again.Does Unlinking OneDrive Delete Files? When you unlink OneDrive, a message will inform you that “online only” files will be removed. So yes, if you confirm the unlink action those files will be deleted from your local hard drive. They will however remain available in your OneDrive cloud storage.Resetting Microsoft OneDrive can sometimes resolve sync issues and resets all OneDrive settings. OneDrive will perform a full sync after the reset. You won't lose any data by resetting or uninstalling OneDrive. Windows Mac Android iOS
What happens when you delete a folder on OneDrive?
When you delete a file or folder on OneDrive with one device, you won't be able to find it on your other devices. All deleted files go into the Recycle bin, where you have a chance to restore it. Select the file or files you want to delete.
How do I keep files on OneDrive but not on my computer?
If you want to keep a file, photo, or folder on your OneDrive, but not on your computer (because you don’t want it to take up space), put the file in your OneDrive folder, then turn on Files On-Demand (Windows) (or Files On-Demand (Mac) ). You’ll still see the file in the OneDrive folder on your computer, but it will take up zero hard drive space.
Does unlink delete files on OneDrive?
So yes, if you confirm the unlink action those files will be deleted from your local hard drive. They will however remain available in your OneDrive cloud storage. Let’s explore all that in a little more detail. Here’s the message that OneDrive will display when you click unlink this pc.
Does uninstalling OneDrive delete sync data?
Using the standard Windows uninstall control panel to remove OneDrive won’t delete the files already sync’d to your computer. I do recommended you open OneDrive settings and UnLink your account before uninstalling OneDrive.

Below are two helpful articles on a similar topic 👇
How to open PowerShell in Windows 10 Start menu?What happens to “online only” files in Microsoft OneDrive?