I would advise against this.
Linux likes to keep caches full to minimise disk reads, this is a good thing for performance. It will automatically optimise what to keep in the cache.
Unused RAM is wasted RAM.
What is your reason for wanting to free up memory?