In the upper right corner of the page, click your profile picture, then click Account.
On this page, you will find a button to delete your account. Click that.
You will now be presented with an overview of how many npm packages will be deleted and deprecated as part of your account deletion. If you agree with this, then enter your username and click "Delete this account".
You will be immediately logged out, and will not be able to log back in.
In some cases, you will be presented with an error if we were unable to automatically delete your account. For example. if you are the sole owner of an organization you will need to add an additional owner before your account can be deleted. You will be presented clear instructions of what you will need to do in order to delete your account.