The district attorney has authority, on the terms prescribed by law, to enter a nolle prosequi on indictments. (Orig. Code 1863, § 354; Code 1868, § 415; Code 1873, § 380; Code 1882, § 380; Penal Code 1895, § 801; Penal Code 1910, § 801; Code 1933, § 24-2915.)