It's not an uncommon occurrence for a child to wish to divorce its parents, based on one or more circumstances. And depending on the jurisdiction, in most cases this is entirely possible, provided the child can specify the reasons for the decision coherently and without any influence. The legal term for this action is "emancipation", and after the proceeding has concluded, the parents are freed of any legal obligations they have related to that child and are no longer considered its parents in the face of law.
Emancipation is not granted lightly, and there must be some very specific reasons presented for it, otherwise the child's request will be denied by court. It should be noted that the parents can rarely influence the court's decision on this manner, as the major portion of the case is seen from the child's perspective. Thus, it's important for a child to fully understand the consequences of requesting emancipation and the situation it's driving itself into.
Emancipation can also occur automatically when some events occur. This includes the child joining the army, though in this case it must be with the consent and permission of its parents - in these cases, both parties agree over the emancipation and it's regarded as mutual. Another such example is when the child chooses to marry another child, which must once again happen with the consent of both parents - after the marriage, the child is automatically emancipated and is treated as a separate legal entity.