Just the other day I got kicked from my account because I opened Minecraft while my internet was off so I turned it back on and logged back in, but I clicked leave on device by accident this time. When I saw that my marketplace purchases were missing I tried to log out but could not. After a little researching a found this website: https://answers.microsoft.com/en-us/windows/forum/windows_10-other_settings/minecraft-windows-10-xbox-log-out/cd1f0a33-5743-4ab0-9bf5-b09f9a5a453f
and followed what it said, this did not work so I tried uninstalling the game and reinstalling and now I cannot log out and can't access the Marketplace, when I open the game it says "Error Number -9"
Related issues
duplicates
Comments

Thank you for your report!
We're tracking this issue in MCPE-117294, so this ticket is being resolved and linked as a duplicate.
If you would like to add a vote and any extra information to the main ticket it would be appreciated.
If you haven't already, you might like to make use of the search feature to see if the issue has already been mentioned.
Quick Links:
📓 Bug Tracker Guidelines – 💬 Community Support – 📧 Mojang Support
📓 Project Summary – ✍️ Feedback and Suggestions – 📖 Game Wiki