---
title: "Remove the organization's App Store Connect key."
method: DELETE
path: "/organizations/{organizationId}/app-store-connect-credential"
tags: ["app-store-connect"]
---

# Remove the organization's App Store Connect key.

`DELETE /organizations/{organizationId}/app-store-connect-credential`

## Request

- Base URL: `https://api.shorebird.dev/api/v1`
- URL: `https://api.shorebird.dev/api/v1/organizations/{organizationId}/app-store-connect-credential`
- Auth: one of:
  - HTTP bearer
  - HTTP bearer

Deletes the key, so Shorebird can no longer call App Store Connect
for the organization. The key still works until it is revoked in App
Store Connect, which Shorebird cannot do.

Requires the `storeCredentials.delete` permission, which
only the `admin` and `owner` roles hold. Personal access tokens and
federated (OIDC-exchanged) tokens are refused whatever their role.

## Response `204`

The key was removed.

## Other responses

- `400`: The organization id is not an integer (`organization_id_malformed`).
- `403`: The caller lacks the `storeCredentials.delete` permission, or authenticated with a personal access token or a federated token, which may never remove the key (`personal_access_token_forbidden` or `api_key_insufficient_permissions`).
- `404`: No such organization or the caller is not a member of it (`organization_membership_guard_error`), or the organization has no App Store Connect key (`app_store_connect_credential_not_found`).
- `424`: A database step failed (`app_store_connect_credential_database_error`, or `organization_membership_guard_error` while checking membership).
- `default`: Standard error response. Emitted for any non-2xx status where a body can be decoded into an [ErrorResponse].

---

[API](https://skmtc.dev/shorebird/apis/shorebird-codepush-api.md) - [All operations](https://skmtc.dev/shorebird/apis/shorebird-codepush-api/llms.txt) - [OpenAPI document](https://skmtc.dev/shorebird/apis/shorebird-codepush-api/revisions/941da8871d10?raw)
