> ## Documentation Index
> Fetch the complete documentation index at: https://docs.blobhub.io/llms.txt
> Use this file to discover all available pages before exploring further.

# blobhub installer remove

> Delete an uninstalled installation's record and its log

`remove` deletes the record of an `uninstalled` installation and its log. It ends that installation's log (deleting the
installer blob or its organization ends all of them), and it frees the alias. An installation that still has blobs is
[uninstalled](https://docs.blobhub.io/cli/installer/commands/uninstall.md) first.

## Synopsis

```bash theme={null}
blobhub installer remove <alias> --installer <org>/<blob> [--yes]
```

| Argument or flag | Default | Description |
| - | - | - |
| `<alias>` | required | The installation's alias. |
| `--installer` | required | The installer blob, as `<org>/<blob>`. |
| `--yes` | off | Confirms the lines printed, by sending their digest. Without it the command refuses. |

## What it does

The command sends the platform's [`remove`](https://docs.blobhub.io/blob-types/installer/operations/remove) once, without confirmation. The
platform answers with the lines it would act on, naming the record and the log the remove deletes, and their digest.
Without `--yes`, the CLI prints the lines and ends with `refused: pass --yes to remove` and exit `1`:

```console theme={null}
blobhub installer remove reports --installer acme-corp/installed-apps
```

With `--yes` it sends the call without confirmation as above and prints the lines it answers the same way. It then
sends the call again with their digest as `confirmed`, all in one run, so it confirms what this run printed, never the
lines of an earlier run without `--yes`. The record is removed, and the command's own last line is
`removed the record of reports and its log`. There is nothing to follow, because nothing is left to write a log to:

```console theme={null}
blobhub installer remove reports --installer acme-corp/installed-apps --yes
```

When the lines have changed between the two calls, nothing is removed: the platform answers `plan_changed`, and the
command prints the new lines and ends with `refused: the plan changed while it was confirmed; nothing was removed`, exit
`1` (`PLAN_CHANGED`). A record that is not `uninstalled` is refused on the first call, with or without `--yes`: the
command prints the problem, fails with `INSTALLATION_NOT_UNINSTALLED`, and its hint is the uninstall to run first,
`blobhub installer uninstall reports --installer acme-corp/installed-apps --yes`.

## Errors

| Code | When |
| - | - |
| `APP_NOT_CONFIRMED` | `--yes` was not given. The lines and the refusal line are printed, and the exit code is `1`. |
| `PLAN_CHANGED` | With `--yes`, the lines changed between the two calls. The new ones are printed, and nothing is removed. |
| `INSTALLATION_NOT_FOUND` | The installer blob holds no installation of that alias. |
| `INSTALLATION_NOT_UNINSTALLED` | The record is not `uninstalled`: its blobs still exist, or an operation on it is running. |
| `BLOB_NOT_ACCESSIBLE` | The installer blob is absent or not reachable with this key. A call the platform refuses reads `cannot remove in <org>/<blob>: ` and the platform's own message. |
| `BLOB_NOT_READY` | The installer blob is not `ready`; one being deleted or failed is refused with the platform's `blob <org>/<blob> is <status>`, with no hint. Nothing is removed. |
| `CREDENTIALS_NOT_FOUND`, `PROFILE_NOT_FOUND`, `INSECURE_CREDENTIALS_PERMISSIONS` | No usable credential, a credentials file the CLI refuses to read, or an API URL or key no request can carry ([Error codes](https://docs.blobhub.io/cli/error-codes.md#credentials-and-authentication)). |
| `API_RATE_LIMITED`, `API_TRANSIENT_ERROR`, `API_NETWORK_ERROR` | A call failed after its retries. With `--yes`, `API_TRANSIENT_ERROR` is also lines the CLI cannot read: `cannot read the platform's answer: ...; nothing was removed`, before any of them print. |

Every code above, with its remediation, is in [Error codes](https://docs.blobhub.io/cli/error-codes.md).

## See also

* [Installer overview](https://docs.blobhub.io/cli/installer/overview.md) — the refusal and `--yes`.
* [`remove`](https://docs.blobhub.io/blob-types/installer/operations/remove) — the operation behind the command.
* [`blobhub installer uninstall`](https://docs.blobhub.io/cli/installer/commands/uninstall) — the step before.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.