Just run brew prune — this fixes them all in one go.
brew prune
Run brew prune -v for verbose to see what it's doing.
brew prune -v