When any lien provided for by this chapter has attached to the property covered thereby, it is unlawful for any person to remove such property, or any part thereof, or cause the same to be removed from the land or premises where located at the time such lien attached or otherwise dispose of the same without the written consent of the holder of such lien. In the event such property, or some part thereof, is about to be removed or disposed of in violation of this section, the district court of the county where such property, or any part thereof, is located may upon the verified application of the holder of such lien enjoin all persons alleged in such application to be about to remove or dispose of such property, or some part thereof, from removing or disposing of the same. In the event such property, or any part thereof, has been removed or disposed of in violation of this section, the holder of such lien is entitled in any action to foreclose the same to the appointment of a receiver to take possession of such removed or disposed of property wherever the same may be located within this state; provided, however, that this section does not preclude the appointment of a receiver in actions brought to foreclose liens given by this chapter upon any equitable grounds warranting such appointment. This section does not apply to any lien claims which have been discharged by the filing of a bond as provided by section 35-24-13.
N.D.C.C. § 35-24-17