
289 S.E.2d 673 (1982)
STATE ex rel. H. K.
v.
Charles TAYLOR, Superintendent, WVISB.
No. 15209.
Supreme Court of Appeals of West Virginia.
March 19, 1982.
*675 Paul Mones, Morgantown, for relator.
Chauncey H. Browning, Jr., Atty. Gen., and Joseph C. Cometti, Asst. Atty. Gen., Charleston, for respondent.
McGRAW, Justice:
In this original habeas corpus proceeding, originally assigned to the per curiam docket, and brought pursuant to W.Va.Code § 53-4-1 (1980 Replacement Vol.), the issue before us is whether the Circuit Court of Cabell County exceeded its lawful jurisdiction by committing the relator, a juvenile status offender, to the West Virginia Industrial School for Boys at Pruntytown, for a period of thirty days for the purpose of undergoing a medical examination and diagnostic *676 classification. We find that the trial court erred in so committing the relator, and award the writ.
The relator is a ten-year old boy. His mother and stepfather, with whom he resides in Huntington, petitioned the circuit court to find him delinquent under W.Va. Code § 49-1-4(3) (1980 Replacement Vol.), because he refused to respond to their supervision. The specific allegations against the relator were that he stayed away from home for a number of hours at a time and that he got into fights at school. At a hearing held on the petition, the relator did not deny the allegations against him and was subsequently adjudicated a delinquent child. The court ordered that a probation officer make an investigation of the relator's environment, discuss the alternative dispositions available, and any other relevant information revealed by the investigation and report to the court and all parties involved in the proceeding. Finally, by authority of W.Va.Code § 49-5-13a (1980 Replacement Vol.), the court ordered that the relator be sent to the Diagnostic Center at the West Virginia Industrial School for Boys for a period of less than thirty days, during which period the relator was to undergo general examination, a medical examination and diagnostic classification.
Pursuant to the court's order, the relator was transported to Pruntytown with his hands and feet in shackles, handcuffed to another juvenile. The juvenile with whom he was shackled was a seventeen-year old boy who had been committed to the Industrial School for delinquency as a result of criminal activities. Relator had never been adjudicated or charged with an offense which would be a crime if committed by an adult.
W.Va.Code § 49-5-13a, the circuit court's authority for sending the relator for medical evaluation and diagnostic classification, states:
After adjudication as part of the dispositional proceeding, the court, upon its own motion, or upon request of counsel, may order the child to be delivered into the custody of the commissioner of corrections who shall cause such child to be forthwith transferred to a juvenile diagnostic center for a period not to exceed thirty days. During such period, such child shall undergo examination, diagnosis, classification, and a complete medical examination and shall at all times be kept in an area wholly segregated from the general juvenile inmate population in the custody of the commissioner of corrections. Not later than thirty days after commitment pursuant to this section such juvenile shall be remanded and delivered to the custody of the juvenile probation officer of the county wherein the child was adjudicated delinquent or to the custody of such other person as the court shall direct by its order. Within ten days following the termination of such examination, diagnosis and classification, the commissioner of corrections shall make or cause to be made a report to the court containing the results, findings, conclusions and recommendations of the commissioner with respect to such child.
The resolution of this case is directly controlled by our decision in State ex rel. Harris v. Calendine, W.Va., 233 S.E.2d 318 (1977) where we held that juveniles adjudged delinquent for status offenses cannot be housed in any secure, prison-like facility with juveniles adjudged delinquent for criminal conduct.[1]See also, State ex rel. C.A.H. v. Strickler, W.Va., 251 S.E.2d 222 (1979).
We are firmly committed to this principle which subsequent to the Calendine decision was embodied in statutory form. W.Va. Code § 49-5-16 (1980 Replacement Vol.) states in pertinent part that: "[a] child charged with or found to be delinquent solely under subdivision (3), (4) or (5), section *677 four [§ 49-1-4], article one of this chapter, shall not be housed in a detention or other facility wherein persons are detained for criminal offenses or for delinquency involving offenses which would be crimes if committed by an adult..."[2]
In addition, we held in syllabus point 6 of State ex rel. Harris v. Calendine, supra:
No child adjudged delinquent for a status offense may be incarcerated in a secure, prison-like facility devoted exclusively to status offenders unless the record supports a specific finding by the juvenile court that the child is so ungovernable or anti-social that no other reasonable alternative exists, or with due care and diligence on the part of the State could exist, to physical restraint such as only a secure, prison-like facility can provide. The proper test in this regard is not what reasonable alternatives are actually afforded by the State but rather what reasonable alternatives could be afforded by a humane and enlightened state, solicitous of the welfare of its children.
In the case before us the relator was transported to Pruntytown in the company of a much older, and apparently more dangerous child, and upon his arrival he was detained in a secure, prison-like environment in the company of children adjudged delinquent for criminal offenses. It was exactly this type of mixing of criminal and status offenders that we sought to avoid in Calendine where we placed particular emphasis on this point.
[N]o status offender in any event, regardless of incorrigibility, may be incarcerated in a secure, prison-like facility which is not devoted exclusively to the custody and rehabilitation of status offenders. We emphasize here that State parsimony is no defense to an allegation of deprivation of constitutional rights. The State may not punish a person not deserving of punishment merely because such action serves the State's interest in convenience of frugality. [citations omitted]. 233 S.E.2d at 331.
We stressed in State ex rel. Harris v. Calendine, supra, at 329 that "the State must exhaust every reasonable alternative to incarceration before committing a status offender to a secure, prison-like facility." It makes no difference that the incarceration in this case under W.Va.Code § 49-5-13a was for a period "not to exceed thirty (30) days" or that it was allegedly "diagnostic" detention as opposed to "punitive" detention. There is no express language in the statute indicating that the legislature contemplated that this diagnostic detention would be used for status offenders. While no explicit pronouncement is made on the subject, in light of the protections that are elsewhere evidenced in the statutory scheme to protect status offenders from integration with criminal offenders, and in light of State ex rel. Harris v. Calendine, supra, there should be little confusion on the subject.
In addition, we emphasize that W.Va. Code § 49-5-16 specifically prohibits the mixing of status and criminal offenders in a detention center. Section 16 and W.Va. Code § 49-5-13a must be read in pari materia.
Certainly a status offender can be sent to a residential treatment facility, a hospital, or other institution for diagnosis. And as we held in syllabus point 7 of Calendine:
While no child adjudged delinquent for a status offense may be incarcerated in a secure, prison-like facility with children adjudged delinquent because of criminal activity, such status offenders may be housed and educated with criminal offenders in half-way houses and other modern, well-staffed facilities when it *678 can be reasonably demonstrated that the welfare of both status and criminal offenders will be enhanced and that there is no serious threat to the physical or emotional well-being of the status offenders.
However, a status offender cannot be sent to a secure, prison-like facility for such diagnosis.
In addition to the legitimate diagnostic value of the procedure legislated in W.Va.Code § 49-5-13a, were we to find that the section allowed status offenders to be sent to a secure, prison-like facility for diagnosis, the diagnostic commitment becomes, at least potentially, a "shock therapy" approach. It should be obvious that such a procedure cannot be used as a sanction against juveniles who would not otherwise be eligible for incarceration.[3]
We note also one of the primary duties of the circuit court stated in W.Va.Code § 49-5-4 (1980 Replacement Vol.) which provides that "[a] person under the age of eighteen years who appears before the circuit court in any capacity shall be deemed to be a ward of the court and protected accordingly." This protective obligation is not restricted to the circuit court. The Department of Welfare is charged with responsibility for children "committed to its care by courts exercising juvenile jurisdiction." W.Va.Code § 49-2-16 (1980 Replacement Vol.).
In his prayer for relief, the relator prays that he be released from the WVISB and returned to the circuit court for the purpose of determining a suitable rehabilitation environment. Clearly the relator is entitled to such rehabilitation.[4] In Syl. pt. 6 of our recent case of State ex rel. R.S. v. Trent, 289 S.E.2d 166 (W.Va.1982), we held: "A child adjudged delinquent and committed to the custody of the State has both a constitutional and a statutory right to treatment." We noted that our juvenile law contemplates a cooperative effort on the part of the Department of Welfare, the Department of Health, the Commissioner of Corrections and the juvenile court to develop a comprehensive program of individualized treatment for juvenile offenders:
All officers and employees of the State charged with implementing the provisions of the juvenile law are required to act in the best interests of the child and the public in establishing an individualized program of treatment for each child adjudged delinquent.
Although Trent involved sentencing and the juvenile's final dispositional hearing, the principles enunciated in that case apply no less to the present proceeding where there was no attempt made to structure any type of individualized program for the relator's diagnosis. Neither was there any attempt made, at least on the record, to determine whether a less restrictive alternative to diagnosis at Pruntytown was available to the relator. It is well established in our body of juvenile law that juveniles are constitutionally entitled to the least restrictive treatment that is consistent with the purpose of their custody.[5]State *679 ex rel. K.W. v. Werner, W.Va., 242 S.E.2d 907 (1978).
In the case before us, the relator was adjudged a delinquent, but only as a status offender. Surely, there were alternatives available to the circuit judge for the relator's diagnosis. As we noted in Trent, supra 289 S.E.2d 166.
[J]uvenile courts and the Department of Welfare are not limited by statute to relying solely upon their own resources to develop individualized treatment programs for juvenile offenders. The Department of Welfare has the express authority to enter into cooperative ventures with private or State agencies in order to establish and implement rehabilitative alternatives for juveniles. W.Va.Code § 49-5B-4(c). Thus, the Department of Welfare is at liberty to call upon the expertise of the Department of Health, the Department of Education and county boards of education, as well as that of private agencies and organizations, to design and put into operation individualized treatment programs that will address the problems and needs of delinquent children, thereby fulfilling the interests of society. The juvenile courts and state agencies involved in the treatment process should draw upon these valuable resources to effect the rehabilitative purposes of the juvenile justice system.
We agree with the relator's contention that his incarceration in the Diagnostic Center at the WVISB was illegal.
Writ Awarded.
NOTES
[1]  Syllabus Point 4 of State ex rel. Harris v. Calendine, W.Va., 233 S.E.2d 318 (1977) states:

Under no circumstances can a child adjudged delinquent because of a status offense, i.e., an act which if committed by an adult would not be a crime, be incarcerated in a secure, prison-like facility with children adjudged delinquent because of criminal activity.
[2]  W.Va.Code § 49-1-4 (1980 Replacement Vol.) defines a delinquent child in part as one: "(3) Who, without just cause, habitually and continually refuses to respond to the lawful supervision by such child's parents, guardian or custodian; (4) Who is habitually absent from school without good cause; or (5) Who willfully violates a condition of a probation order or a contempt order of any court."
[3]  We specifically disapproved the "shock therapy" approach in State ex rel. R.C.F. v. Wilt, W.Va., 252 S.E.2d 168, 171 (1979):

The loss of liberty and the exposure of juveniles to adult offenders even for a short time can do but ill for the child. The theory held by some well-meaning but untrained and misguided souls that the "shock effect" of temporary incarceration can be beneficial to juveniles is hereby specifically disapproved.
The issue in Wilt was whether a child under eighteen years of age who is being proceeded against as a juvenile delinquent for the commission of a criminal offense can be incarcerated in a county jail prior to an adjudication of delinquency. We held in the negative.
[4]  We have held on numerous occasions that the purpose of our juvenile justice system is to provide for the rehabilitation of delinquent children. See, State ex rel. R.S. v. Trent, 289 S.E.2d 166 (W.Va. 1982); State ex rel. D.D.H. v. Dostert, W.Va. 269 S.E.2d 401 (1980); State ex rel. Harris v. Calendine, W.Va., 233 S.E.2d 318 (1977).
[5]  Syllabus points 1 and 2 of State ex rel. R.S. v. Trent, 289 S.E.2d 166 (W.Va. 1982), state respectively:

W.Va.Code § 49-5-13(b) (1980 Replacement Vol.) requires the juvenile court at the dispositional stage of delinquency proceedings to "give precedence to the least restrictive" of the enumerated dispositional alternatives "consistent with the best interests and welfare of the public and the child."
Before ordering the incarceration of a child adjudged delinquent, the juvenile court is required to set forth upon the record the facts which lead to the conclusion that no less restrictive alternative is appropriate. The record must affirmatively show that the child's behavioral problem is not the result of social conditions beyond the child's control, but rather of an intentional failure on the part of the child to conform his actions to the law, or that the child will be dangerous if any other disposition is used, or that the child will not cooperate with any rehabilitative program absent physical restraint.
