<p>If the account doesn't have a <ahref="/api/srp">2FA password</a>, calling this method will <strong>immediately delete the Telegram account</strong>.<br>
If the account has a <ahref="/api/srp">2FA password</a> and it is provided to <code>account.deleteAccount:password</code>, calling this method will <strong>immediately delete the Telegram account</strong>. </p>
<p>If the account has a <ahref="/api/srp">2FA password</a> but the user doesn't remember it, <ahref="/api/srp#password-reset">password reset may be requested first »</a>, or otherwise, the <code>password</code> field may simply be left empty. </p>
<p>In this case, if the account's <ahref="/api/srp">2FA password</a> was modified more than 7 days ago and was active in the last 7 days, <strong>account deletion will be delayed for 7 days</strong>.
Otherwise, the account will be <strong>immediately deleted</strong>.<br>
In the first case, a <ahref="/constructor/updateServiceNotification">service message will be sent to the user</a>, containing a <ahref="/api/links#phone-confirmation-links">phone number confirmation link »</a>.</p>
<p>When such a link is clicked, <ahref="/method/account.sendConfirmPhoneCode">account.sendConfirmPhoneCode</a> must be called with the specified <code>hash</code>, using the account with the specified <code>phone</code> number.<br>
This will send a phone number verification code to the phone number associated with the account.<br>
The phone code settings are the same as for the <ahref="/api/auth">login code</a>, and <ahref="/method/auth.cancelCode">auth.cancelCode</a> with <ahref="/method/auth.resendCode">auth.resendCode</a> can be used as well, to resend or cancel the phone code as for the <ahref="/api/auth">login code</a>.</p>
<p>Once the SMS code is received, the <ahref="/method/account.confirmPhone">account.confirmPhone</a> method will have to be called with the SMS code and the phone hash received from the <ahref="/method/account.sendConfirmPhoneCode">account.sendConfirmPhoneCode</a> method.</p>
<p>Telegram clients must handle special <code>tg://</code> and <code>t.me</code> deep links encountered in messages, link entities and in other apps by registering OS handlers. </p></div>