One way to do this would be to log into the unwanted "child" account and request deletion of the Apple ID. You should have the ID and password from when you first set up the account.
Another way would be for the child to make the request.
From: How to delete your Apple ID account - How to delete your Apple ID account - Apple Support
Section: Can I delete my child’s account?
"Your child can also request deletion of their Apple ID, which requires your approval.
The approval request will be sent via email to the primary Apple ID email address of your family organizer account. When approving the request from this email, you will go through the process of deleting the child account."
If the child's account password is unknown, see the section in this document about using a family Organizer's device to reset the password --> Change your Apple ID password - Apple Support
If you have problems doing that then contact Apple about this request: Click here --> Choose your country or region - Official Apple Support Select your country, then a product and work your way down the menu to the desired issue. If you don't see one then try a different product until you reach a telephone or chat help request and ask to be redirected.
Why did the child create a second Apple Account? You do not need to do that. In fact it is a bad thing to do because anything purchased with the old account will be lost to everybody. Read this support article about Apple ID Frequently Asked Questions --> https://appleid.apple.com/faq
"How many Apple IDs do I need?
Just one. Use the same Apple ID everywhere you sign in to ensure that all your Apple services and devices work together seamlessly and you can access your personal content from all your devices."