How to freeup local space on linux for all virtual folders which are not always available

HI,

I do have several folders which are always available locally but much more not. Over the weeks there therefore more locally available than they have to.
With windows explorer thats easy to be triggered for all with the context menu but how to do in linux? May a nextcloudcmd … ?

Would be really helpful to free up the used local space.