Ship to the App Store

Have an Agent check that an App Store Connect app record can be removed, delete it, and restore it later. Your AirBuild project stays as it is.

An app record is your app’s entry in App Store Connect: its name, its Bundle ID and its listing (see Create your app’s App Store Connect record). A record you made for a test, or for an app you won’t ship, can be deleted. AirBuild has no button for this: you ask an Agent, and it uses asc web apps delete.

Apple’s public App Store Connect API doesn’t offer app deletion, so this command works through the Team owner’s Apple sign-in that AirBuild holds. See asc: web session commands.

Before you start

Before it changes anything, the command reads the app’s state in App Store Connect and stops if one of these isn’t true:

  • The app is off sale in every storefront. See Take your app off sale.
  • The app doesn’t go on sale in new storefronts. In AirBuild, that’s the New Storefronts switch in Availability.
  • Neither the app nor any of its versions is Ready for Review, Waiting for Review, In Review, Metadata Rejected or Rejected.
  • The app isn’t distributed through an alternative marketplace.

Turn off New Storefronts first, then take the app off sale. AirBuild saves Availability only while at least one storefront is chosen, so once the app is off sale everywhere, you can’t save that switch in AirBuild any more. See Set your app’s price and where it’s sold.

The command can’t see everything. It doesn’t check in-app purchases that are still on sale, an app transfer in progress, whether the app is part of an app bundle, or alternative marketplace integrations. If any of these apply to your app, sort them out in App Store Connect first.

Delete the record

Name the app and its Bundle ID, and ask for a dry run first:

Delete the App Store Connect record for Sample Notes (com.example.notes). Do a dry run first and tell me what it finds.
  1. Send the request in the Project’s chat.
  2. The Agent runs the command with --dry-run. It checks everything listed under Before you start and changes nothing. In the chat you get the app’s ID, name and Bundle ID, or what stands in the way.
  3. Deleting needs --confirm, so the Agent asks you before it goes ahead. Check that the name and Bundle ID it found are the app you mean, then say yes.
  4. The Agent deletes the record. With --expected-name and --expected-bundle-id the command stops if the record it finds isn’t the app you named. It reports success only after Apple confirms the app is removed.

The record goes to App Store Connect’s Removed Apps. To see what’s there, ask “Show me my removed apps.” The Agent lists them with asc web removed-apps list: each app’s ID, name, Bundle ID, version, status and SKU.

Restore a removed app

Restore Sample Notes from Removed Apps.

The Agent finds the app’s ID in the removed apps list and restores it with asc web removed-apps restore. Restoring needs --confirm, so the Agent asks you first.

Restoring also takes an access setting: full lets App Store Connect users who see only some apps see this app too, and limited doesn’t. Tell the Agent which one you want. If the app comes back but the access can’t be set, the command says the app “was restored but access update failed”.

Restoring doesn’t change where the app is sold. It was off sale when you deleted it; to sell it again, choose its storefronts in Availability.

Questions

Does deleting the record delete my project in AirBuild?
No. The project, its chat, its files and its builds stay. To delete the project too, see Organize, archive and delete projects.
Does deleting the project in AirBuild delete the record?
No. Delete App removes the project from AirBuild only. The App Store Connect record stays until you delete it as described here.
It says the app “is still available in territories”.
The app is still on sale somewhere: “remove it from sale in all territories first”. See Take your app off sale, then ask again.
It says the app “is still available in new territories”.
The app still goes on sale in new storefronts: “disable new-territory availability first”. If the app still has a storefront, turn off New Storefronts in Availability and tap Save, then take it off sale. If it’s already off sale everywhere, turn new storefronts off in App Store Connect.
It says Apple doesn't allow removal while the app is in review.
The message names the state: “Apple does not allow removal while an app is Ready for Review, Waiting for Review, In Review, Metadata Rejected, or Rejected”. Wait for Apple’s decision, or withdraw the submission (see Withdraw a version from App Review), then ask again. The command doesn’t say how to clear a rejection.
It says the app “is still distributed via marketplace”.
The app is on an alternative marketplace: “remove it from alternative marketplace distribution first”. Do that in App Store Connect, then ask again.
It says “Apple denied the request (403)”.
The command adds: “the account role likely lacks permission for this action, or the web session expired”. If the Team owner’s Apple sign-in has expired, the owner signs in again in Settings › Developer › Sign In Again. See Connect your Apple Developer account.
Can I use the app's name or Bundle ID for a new record?
The command doesn’t say what Apple does with the name and Bundle ID of a removed app, and this page doesn’t cover it. See App Store Connect Help ↗.