No person holding a public position by appointment or employment, and belonging to any of the classes of persons to whom a preference is granted pursuant to this chapter, may be removed from the position or employment unless replaced by another person of a class to whom such preference is granted. However, the person may be removed for incompetency or misconduct shown after a hearing, upon due notice, upon stated charges, and with the right of the employee or appointee to a review by writ of certiorari. The burden of proving incompetency or misconduct rests upon the party alleging the incompetency or misconduct.
SDCL 3-3-4