When any person who shall be liable to pay rent (whether the same be due or not, if it be due within one (1) year thereafter, and whether the same be payable in money or other things), intends to remove, or is removing, or has, within thirty (30) days, removed, his property, or his crops, or any part thereof, from the leased premises, the person to whom the rent is owing may commence an action, and upon making an affidavit stating the amount of rent for which such person is liable, and one or more of the above facts, and executing an undertaking as in other cases, an attachment shall issue in the same manner and with the like effect as is provided by law in other actions.
Okla. Stat. tit. 41, § 27