palbaseDocs

Palbase Stores · API

DELETE/stores/apps/{app_id}/record

Remove the app's App Store Connect record

Removes the app's record at App Store Connect, as its Remove App does: Apple takes it for an app never approved, with no version ready for, waiting for, in or rejected by App Review, sold on the App Store alone (409 app_record_not_removable says which). The removal is read back: the app stays linked, with no record (stores.app.changed, record_removed), only once Apple says it is removed. An owner's or an admin's, or the project's secret key's. Needs the project's Apple ID signed in (409 apple_id_not_connected, or apple_id_expired) and the app's App Store Connect record (409 app_record_missing).

Called by your server, with the project's secret key.

Path

app_idstring (uuid) · requiredThe app's id (the registry's: the same app in every environment).

Headers

Idempotency-Keystring · optionalMakes the write safe to send again (at most 255 characters). A retry with the same key and the same request gets the first answer back, marked `Idempotent-Replayed: true`, and changes nothing; the same key with a different request is refused with 422, and while the first request still runs a retry gets 409 with Retry-After. Answers are kept for 24 hours.
curl
curl -X DELETE "https://<your-ref>.palbase.studio/stores/apps/<app_id>/record" \
  -H "apikey: $PALBASE_SECRET_KEY"

Responses

204Disconnected

400Validation failed or a required field is missing

401Missing or invalid API key

403Not the project's secret key; or a change to the platform's own project (`owner_only`) without its owner's access token (X-Palbase-Owner) or its operator's token (X-Palbase-Operator) beside the key. An owner's sign-in that is not a passkey one from the last 15 minutes is 401 `insufficient_user_authentication`.

404No such secret, or no such version

409No Apple ID signed in (`apple_id_not_connected`), Apple ended its session (`apple_id_expired`), no record (`app_record_missing`), Apple would not remove it (`app_record_not_removable`), or the Apple ID's role or team does not allow it (`apple_forbidden`)

422App Store Connect refused it (`apple_refused`): an app approved once is not removed

429Over the project's request limit or quota

502App Store Connect could not be reached; retrying is safe

503Temporarily unavailable; retrying is safe after Retry-After

defaultAn error: the envelope names it (`error`) and explains it (`error_description`).

Operation RemoveAppRecord of stores's contract.