With Optimize Storage, you can automatically free up space on your iMac by making files available on demand. Your oldest files are stored in iCloud and on your email IMAP or Exchange server, so you can download them at any time. There are also tools to identify and delete big files.
Optimize storage. To see storage recommendations, choose Apple menu Optimize storage space on your Mac.