To free up space from locally available OneDrive files, do the following.
Open File Explorer.
Navigate to your OneDrive folder by clicking on the OneDrive icon on the left.
Right click on the empty space (folder background) when no files have been selected, and select Free up space from the context menu.
This doesn't delete anything from your OneDrive, it removes un-used cached files.