# Remove a Web Connector install
Source: https://www.desktopaccountingapi.com/docs/api/reference/operations/endusersremoveconnectioninstall/

`POST https://api.desktopaccountingapi.com/v1/end-users/{id}/connection/installs/{installId}/remove`

Operation ID: `endUsers.removeConnectionInstall`. Tag: End users.

Stops one Web Connector install (one computer) from serving the connection; the connection's other installs keep serving it. Its next check-in is refused. If that computer has a session open, a request already in QuickBooks finishes and the session then ends; queued requests are served by the other installs. A write whose outcome became unknown on that computer keeps later writes waiting for up to 15 minutes, because QuickBooks there may still be applying it. Removing the last active install makes the connection offline at once (synchronous requests fail with `INTEGRATION_CONNECTION_NOT_ACTIVE`) until a new auth session adds one. Removing a removed or replaced install changes nothing. To add a computer, create an auth session with `installMode: "add"`.

Authentication: `Authorization: Bearer <secret key>`.

Example request:

```sh
curl -X POST https://api.desktopaccountingapi.com/v1/end-users/eu_01j9x4m6v4c8k2t7q0r5s3w1zb/connection/installs/ctr_01j9x4m6v4c8k2t7q0r5s3w1zg/remove \
  -H "Authorization: Bearer $DAAPI_SECRET_KEY" \
  -H "Idempotency-Key: $(uuidgen)"
```

## Path parameters

- `id` (string, required): Unique identifier for the end user. example `eu_01j9x4m6v4c8k2t7q0r5s3w1zb`.
- `installId` (string, required): Unique identifier for the Web Connector install (one connector file). example `ctr_01j9x4m6v4c8k2t7q0r5s3w1zg`.

## Headers

- `Idempotency-Key` (string): Makes a write safe to retry. Repeating a key with the same request attaches to or replays the original instead of creating a second one. 1–255 printable ASCII characters, retained 7 days. Reusing a key with a different request returns `422 IDEMPOTENCY_KEY_REUSED`. 1–255 characters; example `6f1c2a0e-1f7e-4c55-9a7a-0b2d2c9e3a10`.

## Responses

### 200

The connection, with the install removed.

Body (application/json): object (IntegrationConnection).

### Errors

Every error body is the error object described at https://www.desktopaccountingapi.com/docs/errors/.

- `400`: The request is invalid. Codes: `UNKNOWN_HEADER`, `INVALID_PARAMETER`, `IDEMPOTENCY_KEY_INVALID`.
- `401`: The API key is missing or invalid. Codes: `API_KEY_MISSING`, `API_KEY_INVALID`.
- `403`: The operation is not permitted. Codes: `API_KEY_READ_ONLY`.
- `404`: The object does not exist in this project. Codes: `RESOURCE_MISSING`.
- `409`: The request conflicts with the current state. Codes: `INTEGRATION_CONNECTION_NOT_SET_UP`.
- `422`: The request is well formed but cannot be processed. Codes: `IDEMPOTENCY_KEY_REUSED`.
- `429`: Too many requests. Codes: `RATE_LIMITED`.
- `500`: Unexpected server error. Codes: `INTERNAL_ERROR`.
- `503`: QuickBooks Desktop or the service is not available. Codes: `SERVICE_UNAVAILABLE`.
