Freeing up space on the desktop client

Can someone explain me if it is possible to automatically delete every a certain time the files downloaded locally but not delete them from the cloud.
The goal is not to fill the hard drives of the computers in my organization.

Thank you very much