Sometimes a couple years and sometimes decades later
It varies. It has a lot to do with traffic flow and usage.
There are buildings that are hundreds of years old that are not abandoned, and there are buildings that are just a few years old that are. It has nothing to do with the age of the building, but more about the economy surrounding it.