If you want to save space by keeping a file or folder on your OneDrive, but not on your computer, put the file in OneDriveĀ and turn onĀ Files On-Demand.
After you've moved the file, you can see it in the OneDrive folder on your computer but it won't take up any space on your hard drive.