Unfortunately, the depreciation is allowed or allowable. You have to recapture it whether you took it or not.
Depreciation allowed or allowable. The greater of the depreciation allowed or allowable is generally the amount to use in figuring the part of gain to report as ordinary income. However, if in prior years, you have consistently taken proper deductions under one method, the amount allowed for your prior years will not be increased even though a greater amount would have been allowed under another proper method. If you did not take any deduction at all for depreciation, your adjustments to basis for depreciation allowable are figured by using the straight line method.
<a rel="nofollow" target="_blank" href="
https://www.irs.gov/publications/p544#en_US_2017_publink100072570">https://www.irs.gov/publications/...>