Per the following article (How to delete your Apple Account – Apple Support (UK)): "After requesting the deletion of your account, you’ll receive a unique alphanumeric access code. Make sure that you keep this access code in a
safe place. For a short period of time while your request is being processed, you can contact Apple Support, provide your access code and we’ll help you cancel your request so you can resume using your Apple Account. "
Therefore, although it is nearly impossible to "accidentally" delete an Apple Account, you may have a very short amount of time to recover.