When does macOS delete local iCloud Drive files?
“Your Mac keeps all of your recent files on your computer, but keeps your older ones only in iCloud, ready for you to download when you need them again”, Apple says. 

So as long as you still have enough free space on your hard disk the files will stay there.