A historic apartment building that has sat vacant for more than two decades is set to be demolished in the coming weeks.