Yep. You've got a 1231 loss. Look at Form 4797.
And if you had suspended PALs for these properties they get freed up, too.