In the Salesforce DX pilot, every pilot participant was given a temporary dev hub org. These orgs expired, were destroyed, and sent back to the matrix in advance of the open beta.
I had an existing installation of the Salesforce DX cli, and I found after upgrading, my old dev hub was still hanging about showing it had an invalid grant. So time to do some tidying.
Normally, to delete a scratch org, you'd just delete it. I wasn't sure, so first I attempted to remove it that way:
sfdx force:org:delete -u dev-hub
Only this didn't work. Salesforce DX only allows the deletion of scratch orgs, not other org types.
I then created my new dev hub and attempted to replace the existing dev-hub
alias by doing...
sfdx force:auth:web:login -a dev-hub -d
Only I was left with it still registered in the list, just with no more alias.
How do you remove a dev-hub org, or any other non-scratch org from the list of orgs in the SFDX CLI?