Files
GoogleDriveManagement/docs/How-to-Uninstall-GAM7.md
Ross Scroggs 896f7f5d37
Some checks failed
Build and test GAM / build (Win64, build, 9, VC-WIN64A, windows-2022) (push) Waiting to run
Build and test GAM / build (aarch64, build, 3, linux-aarch64, [self-hosted linux arm64]) (push) Waiting to run
Build and test GAM / build (aarch64, build, 5, linux-aarch64, [self-hosted linux arm64], yes) (push) Waiting to run
Build and test GAM / build (aarch64, build, 7, darwin64-arm64, macos-14) (push) Waiting to run
Build and test GAM / build (x86_64, build, 1, linux-x86_64, ubuntu-22.04) (push) Waiting to run
Build and test GAM / build (x86_64, build, 2, linux-x86_64, ubuntu-20.04) (push) Waiting to run
Build and test GAM / build (x86_64, build, 4, linux-x86_64, ubuntu-20.04, yes) (push) Waiting to run
Build and test GAM / build (x86_64, build, 6, darwin64-x86_64, macos-13) (push) Waiting to run
Build and test GAM / build (x86_64, test, 10, ubuntu-22.04, 3.13) (push) Waiting to run
Build and test GAM / build (x86_64, test, 11, ubuntu-22.04, 3.9) (push) Waiting to run
Build and test GAM / build (x86_64, test, 12, ubuntu-22.04, 3.10) (push) Waiting to run
Build and test GAM / build (x86_64, test, 8, ubuntu-22.04, 3.11) (push) Waiting to run
Build and test GAM / merge (push) Blocked by required conditions
Build and test GAM / publish (push) Blocked by required conditions
Check for Google Root CA Updates / check-apis (push) Waiting to run
CodeQL / Analyze (python) (push) Has been cancelled
Initial limited access, api_call_tries_limit new max
2024-09-29 21:05:40 -07:00

3.8 KiB

Uninstalling GAM7

Get Project Info

gam version

Note the Config File: path to gam.cfg. In that folder will be a file oauth2service.json; look at its contents. You want these two lines:

"client_id": "123691089974044844789"
"project_id": "gam-project-123-456-789"

Remove Client API access

gam oauth delete

Remove Service Account API access

In a browser, go to https://admin.google.com, login and go to the Security/API Controls/Domain-wide Delegation page. Find the Client ID that matches the client_id value from oauth2service.json, hover over it and click Delete.

Delete GAM Project

In a browser, go to https://console.cloud.google.com/cloud-resource-manager, login. Find the ID that matches the project_id value from oauth2service.json; click the three dots at the right end of the line and click Delete. In the box that pops up, put the project_id value in ther Project ID* field and click SHUT DOWN

Linux and MacOS and Google Cloud Shell

In these examples, the user home folder is shown as /Users/admin; adjust according to your specific situation; e.g., /home/administrator.

This example assumes that GAM7 has been installed in /Users/admin/bin/gam7. If you've installed GAM7 in another directory, substitute that value in the directions.

Delete executable directory

rm -fr /Users/admin/bin/gam7

Delete configuration directory

The default GAM configuration directory is /Users/admin/.gam; for more flexibility you probably want to select a non-hidden location. This example assumes that the GAM configuration directory will be /Users/admin/GAMConfig; If you've chosen another directory, substitute that value in the directions.

rm -fr /Users/admin/GAMConfig

Delete working directory

This example assumes that the GAM working directory is be /Users/admin/GAMWork; If you've chosen another directory, substitute that value in the directions.

rm -fr /Users/admin/GAMConfig

Remove executable alias and GAM configuration export

Remove the following line:

alias gam="/Users/admin/bin/gam7/gam"
export GAMCFGDIR="/Users/admin/GAMConfig"

from these files based on your shell:

~/.bash_profile
~/.bashrc
~/.zshrc
~/.profile

Windows

This example assumes that GAM7 has been installed in C:\GAM7; if you've installed GAM7 in another directory, substitute that value in the directions.

Delete executable directory

In File Explorer, delete the C:\GAM7 folder.

Delete configuration directory

The default GAM configuration directory is C:\Users<UserName>.gam; for more flexibility you probably want to select a non user-specific location. This example assumes that the GAM configuration directory will be C:\GAMConfig; If you've chosen another directory, substitute that value in the directions.

In File Explorer, delete the C:\GAMConfig folder.

Delete working directory

This example assumes that the GAM working directory will be C:\GAMWork; If you've chosen another directory, substitute that value in the directions.

In File Explorer, delete the C:\GAMWork folder.

Reset system path and GAM configuration directory

Start Control Panel
Click System
Click Advanced system settings
Click Environment Variables...
Click Path under System variables
Click Edit...
If C:\GAM7 is not on the Path, click Cancel and skip the next three steps
  Click C:\GAM7
  Click Delete
  Click OK
If GAMCFGDIR is not in System variables, skip the next two steps
  Click GAMCFGDIR
  Click Delete
Click OK
Click OK
Exit Control Panel