iCloud Drive is taking space on my Mac

Files you open from iCloud Drive are downloaded and stay on the Mac. Removing the download is not the same as deleting.

Remove Download (keeps the file in iCloud)

Right-click a file or folder in iCloud Drive and choose Remove Download. The file stays in iCloud and on your other devices; only the local copy goes.

Delete (removes it everywhere)

Moving a file to the Trash deletes it from iCloud and every device.

Let macOS do it

System Settings → your name → iCloud → iCloud Drive → Optimize Mac Storage removes local copies of files you have not used when space runs low.

Junk Raccoon counts real space on disk, so files that are only in iCloud are not shown as big.
Let the raccoon do it, safely

Junk Raccoon finds this clutter for you, shows every file first, and keeps a one-click way back. Free beta for Mac.

Download for Mac