If the juvenile has violated a condition of aftercare supervision administered by the department or a county department, a condition of the juvenile's placement in a Type 2 juvenile correctional facility or a Type 2 residential care center for children and youth, or a condition of the juvenile's participation in the intensive supervision program under s. 938.534, the person who took the juvenile into custody may release the juvenile to the department or county department, whichever has supervision over the juvenile.
938.20(2)(d)