I'm trying to clear my cache on my local server using php app/console cache:clear
and get the following error:
[Symfony\Component\Filesystem\Exception\IOException] Cannot rename because the target "C:\wamp\www\Symfony\app\cache\dev" already exist.
I have had that problem for the second time. I fixed it by manually clearing the cache, which contained a 30Go dev_old folder.
How can I properly clear the cache?
Make sure you have the proper rights to clear the cache.
Also, there is no harm in deleting the files manually. Just remove the folders.
But, there will be no cache warmup afterwards if you do it that way.