The removal of any building, outhouse or shed from any real property upon which there is an unsatisfied mortgage properly recorded, as mentioned in the first section of this act, shall not destroy the lien of such mortgage upon such removed property, and it shall be the duty of the court in any action brought to foreclose any mortgage, where it is shown that the property from which said building, outhouse or shed has been removed is insufficient to satisfy such mortgage, to decree the sale of said building, outhouse or shed, wherever the same may be located, in satisfaction of such mortgage: Provided, That the land from which said building, outhouse or shed was removed shall first be sold.
K.S.A. 58-2316