A person entitled to specific real or personal property by reason of a perfected title or a claim of title which ought to be perfected, may recover the same by any of the remedies provided by law and if no specific remedy is applicable, by a civil action according to the facts, and in such cases the judgment may provide for delivery of the possession by specifically commanding the person so to do, or by execution directing the proper peace officer to deliver such possession. Title may be perfected and possession ordered in the same action.
SDCL 21-14-1