Does depreciation on a rental property have to be taken each consecutive year or can this be skipped for years when the property is not rented?

IRS publication 527 states that the depreciation of a rental property stops when it is taken out of service. If the property is rented intermittently can this depreciation be skipped during the years when the property is not rented?