I copied my files to the iCloud Drive directory:
I want to save them in iCloud but I dont want to use my disk storage. How to delete files from my mac and keep it in iCloud Drive? Dont need to access them without downloading. I want to use iCloud as place for backup for my files.
How to delete files from my mac and keep it in iCloud Drive?
You cannot do this, because...
iCloud is a syncing platform and not primarily a backup platform.
iCloud connects you and your Apple devices in amazing ways. It makes sure you always have the latest versions of your important information—like documents, photos, notes, and contacts—on whatever device you’re using. It lets you easily share photos, calendars, locations, and more with friends and family. It even helps you find your device if you lose it.
It's designed to give you access to your files from all your devices. It's not designed to allow you to put a file there and then delete it from your device.
If you need an actual backup solution, you should look to Google, Dropbox, or OneDrive. They'll allow you to do the file backups you need.
to remove files from your Mac and not from iCloud you need to disable iCloud Drive.
All files are removed from your Mac. Now I assume you like Some current files -you're currently working on. When you enable iCloud Drive and enable "Storage Optimisation" file are only synced to your Mac after you downloaded then. i.e. clicked the cloud icon behind the file or folder :-)
We're looking for long answers that provide some explanation and context. Don't just give a one-line answer; explain why your answer is right, ideally with citations. Answers that don't include explanations may be removed.