How to logout or disconnect user credentials in VS Code for Salesforce? January 26, 2022June 9, 2022InfallibleTechie Admin Use SFDX Command to logout or disconnect user credentials in VS Code for Salesforce. Syntax: sfdx auth:logout –targetusername my-hub-org Example: sfdx auth:logout –targetusername magtraining Output: