deleteCredentials static method
Delete the credentials
Implementation
static bool deleteCredentials() {
try {
File file = DashCliEnv.configFile;
if (file.existsSync()) {
file.deleteSync();
DashCliEnv.instance.env
..authToken = null
..refreshToken = null
..username = null
..email = null;
} else {
wtLog.warning('No API keys found');
}
return true;
} catch (e) {
rethrow;
}
}