For information about how to delete an Apple ID account, read this support article —> How to delete your Apple ID account - Apple Support
Carefully and thoroughly read that article for information about what happens when you delete your Apple ID account. For example:
"Make sure that you sign out of all your devices to avoid issues with apps that use your Apple ID account or iCloud. After your account is deleted, you can't sign out of iCloud or turn off Find My iPhone Activation Lock on your devices. If you forget to sign out, you might not be able to use your device when your account is deleted."
Loss of data is a concern, but maybe not the top one if you suddenly find that your computer, iPad and iPhone no longer "belong" to you. ;-) Also a concern is if you have purchased apps or media with the accounts. You cannot transfer ownership to another account. If this is the case, look into sharing with yourself: To learn how to set up Family Sharing, read this support article --> Set up Family Sharing - Apple Support