Skip to main content
uninstall deletes an installation’s blobs with their data, and the service accounts it made with their credentials. The record and its log stay, so the installation can be installed again with install, or deleted with remove. Like install it prints the lines it would act on first, and refuses without --yes.

Synopsis

What it does

The command sends the platform’s uninstall once, without confirmation. The platform answers with the lines it would act on and their digest, and the CLI prints the lines and refuses:
With --yes the command notes the log’s last entry, sends the call without confirmation as above, prints the lines it answers the same way, and sends it again with their digest as confirmed, all in one run. It confirms what this run printed, never the lines of an earlier run without --yes. It then follows the log as install does, until the installation is uninstalled:
The last line is the command’s own. When the lines have changed between the two calls, because another operation ran on the installation, nothing is uninstalled: the platform answers plan_changed with what the uninstall would do now, and the command prints its lines and ends with refused: the plan changed while it was confirmed; nothing was uninstalled, exit 1 (PLAN_CHANGED). An uninstall waits as an upgrade does. While the installation’s last migration still runs, or the app’s busy object says it is busy, the platform refuses the call before it answers with lines, with or without --yes: the command prints the problem as problem: <text>, fails with MIGRATION_RUNNING or APP_BUSY, and nothing is uninstalled. A record that is already uninstalled is refused after the one call, with or without --yes, and waiting never clears it. The command prints the platform’s problem on stdout and fails with INSTALLATION_UNINSTALLED on stderr, whose message is the same sentence:
Under --json, stdout is empty and stderr holds the one refusal document, whose problems holds the sentence. Install it again with install, or delete the record with remove. An uninstall that retires an account needs a person behind the request. Sent with a service account’s key, the confirmed call is refused with the platform’s 403 after the lines are printed, and the command fails with BLOB_NOT_ACCESSIBLE: cannot uninstall in acme-corp/installed-apps: , then the platform’s own message, or the platform refused (HTTP 403) without a message. See who installs. A delete of the installer blob refuses the uninstall with BLOB_NOT_READY, and nothing is uninstalled. When the delete has claimed the blob before the uninstall’s call, the refusal is the platform’s blob acme-corp/installed-apps is deleting, with no hint. When it claims the blob while the call runs, the command prints the platform’s problem first, problem: blob_not_ready: blob installed-apps is being deleted.

Errors

Every code above, with its remediation, is in Error codes.

See also