A writ of mandamus may be directed to a public officer to compel the performance of a ministerial duty required by law, or to a former officer or his heirs to compel the delivery of the papers and effects of the office to his successor.
La. C.P. § 3863