Yeah, your garden solar light is not going to last you an eternity. If it is damaged beyond repair or has simply reached its expiration date (metaphorically), it may be time to throw it out if you do not plan to keep the parts for anything. Oftentimes, it is asked if solar lights can be recycled instead of being dumped in a garbage can. The short answer is yes but to make sure your city’s regulations allow you to do so, double-check with them first.
If not, check out another recycling facility near your area as some will accept all sorts of obscure items such as radio electronics and computers. Solar lights have many useful parts that are worthy of recycling, so take the effort to do so.