If I run a free -m, I get this output:

Is there a command that I could use to clear the used memory? I have tried this:
echo 1 > /proc/sys/vm/drop_caches
It will ask for sudo. But even after sudo, it gives bad command error.
Here is the link where I got to know about drop_caches.
I am just looking for a way on how to clear the cache.