You will need to be connected to the internet before you start with this guide.
Choose Start menu > Control Panel. Click Programs, then click Program and Features. Click iCloud, click Uninstall, then follow the onscreen instructions.
Select your iCloud Drive folder and click OK. Hit the "Start Duplicate Search" button. Choose which duplicates to remove by checking the file's relative checkbox. Click "Recycle Selected Duplicates" and then confirm that you wish to remove the selected duplicates.
If you are missing some, go to Finder, access iCloud Drive in the Sidebar, and copy the missing files to your computer. You can then delete from iCloud. Copy the files from iCloud Drive to a folder other than Documents and the Desktop. Then turn off syncing.
Signing out of iCloud turns off all iCloud features on the device. See If you sign out of your Apple ID preferences. Click iCloud in the sidebar, then deselect Find My MacFind My MacYou can use Find My iPhone on iCloud.com to find the approximate location of your iPhone, iPad, iPod touch, Mac, Apple Watch, AirPods, and Beats product if Find My is set up and the device is online. To sign in to Find My iPhone, go to icloud.com/find. to remove your Mac.
Steps to Delete Photos from Mac but Not iCloud
How to remove a device from iCloud using a Mac
iOS 10.3 or earlier:
Copy files from iCloud Drive to your Mac
Select the file(s) or folder(s) as usual in the Finder of Mac OS X. Open a new Finder window and choose 'iCloud Drive' from the sidebar. While dragging the selected file to iCloud Drive start to hold down the Option key. Drop the file into the destination on iCloud Drive as usual, releasing the Option key afterwards.
To access iCloud Drive in the Terminal on your Mac, you need to use the “cd” command and then select the iCloud documents path's directory. Then, press the Return key to access the iCloud Drive folder. That's it! Now, you will have access to the iCloud Drive folder.
Delete folders or files in iCloud Drive. You can manage and delete folders or files you store in iCloud Drive from your iPhone, iPad, iPod touch, Mac, or PC.
If you are using iCloud Drive to store some of your files, those files are stored on both your Mac and in iCloud. What you can do is remove those files from your Mac and access them through iCloud, thereby freeing up space on your Mac.
If you delete anything from those locations on your Mac that will sync the deletion of that specific copy of the file onto iCloud's Desktop or Documents folder and it will be deleted.
Removing the hard drive on a MacBook is one of the easier maintenance tasks you can perform, and you can have the hard drive extracted in just a couple minutes. Replacing the old drive with a new one is a snap, and then all you'll need to do is reinstall your operating system.
Removing a Hard Drive