The law enforcement officer executing a warrant shall make return thereof to the committing magistrate before whom the defendant is brought pursuant to § 23A-4-1. At the request of the prosecuting attorney any unexecuted warrant may be returned to the committing magistrate who issued it and may be cancelled by him. On or before the return day the person to whom a summons was delivered for service shall make return thereof to the committing magistrate to whom the summons is returnable. At the request of the prosecuting attorney made at any time while the complaint is pending, a warrant returned unexecuted and not cancelled or a summons returned unserved, or a duplicate thereof, may be delivered by the committing magistrate to an authorized person for execution or service.
SDCL 23A-2-12