In all civil actions prosecuted to final judgment or settled by the parties, in which the costs have not been paid or provided for, the clerk or marshal to whom they are due shall be entitled to an order requiring the party against whom such judgment is entered or in favor of whom such settlement is made, or otherwise as directed by the court, to pay these costs, in default of which execution may issue in the name of the clerk or the marshal therefor as the case may be. Where no action of any kind has been taken by any party in any civil action for two (2) years or more, the clerk or marshal to whom any costs may be due may apply to the court, and the court may enter an appropriate order that such costs be taxed and require any party to pay such costs, and in default thereof that any claim or defense of such party be dismissed. This rule shall not apply in actions properly instituted or defended in forma pauperis under applicable law.