The building will be demolished to make way for a new community facility.