To completely get rid of your X (previously Twitter) account, visit the settings and privacy, choose Your account and deactivate your account. Check off the deactivate option as a means of confirming the process and then type in your password. The account will be deactivated and it would take 30 days. Otherwise, you will clear your account and all the information in it forever by not logging in within this timeframe and you will not be able to see or restore it.