Upon receipt of the affidavit, endorsement, undertaking, and order authorizing delivery specified in §§ 21-15-2 to 21-15-4, inclusive, the sheriff shall forthwith take the property described in the affidavit, if it be in the possession of the defendant or his agent, and retain it in his custody. He shall keep it in a safe place and deliver it to the party entitled thereto upon receiving his lawful fees and necessary expenses for keeping the same.
SDCL 21-15-6