Hi Community,
I'm working on Salesforce DX using VS Code and trying to create a new scratch org, but I’m running into this error:
ERROR running force:org:create: getaddrinfo ENOTFOUND can8s.salesforce.com
- Successfully authenticated my Dev Hub org (vedantisurani26317@agentforce.com)
- Verified that no scratch orgs are currently active using:
sfdx force:org:list
Queried ScratchOrgInfo and found 3 scratch org records with Status='Active', for example:
2SRgK00000088YHWAY test-rmit9jbex7yt@example.com 2025-08-02
Tried to delete them using:
sfdx force:org:delete -u test-rmit9jbex7yt@example.com -p
But I got this error:
ERROR running force:org:delete: No authorization information found for username test-rmit9jbex7yt@example.com.
I believe these scratch orgs are counted against my active limit, but I cannot delete them because they are not authorized in my local org list.
My Questions
- How can I delete or remove these “ghost” scratch orgs that show up in the ScratchOrgInfo table but not in sfdx force:org:list?
- Why am I getting the ENOTFOUND can8s.salesforce.com error—could it be related to DNS, proxy, or something else?
- Any way to completely reset scratch org usage or clear the limits?
Any guidance would be greatly appreciated!
Thanks in advance,
Vedanti Surani
#Salesforce Developer
1 answer
Did you try using the new sf commands instead of sfdx?
Please refer to the below articles -
https://developer.salesforce.com/docs/atlas.en-us.230.0.sfdx_setup.meta/sfdx_setup/sfdx_setup_install_cli_firewall.htm
https://developer.salesforce.com/docs/atlas.en-us.sfdx_cli_reference.meta/sfdx_cli_reference/cli_reference_org_commands_unified.htm