Delete an app record you don't need
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.- Send the request in the Project’s chat.
- 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. - 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. - The Agent deletes the record. With
--expected-nameand--expected-bundle-idthe 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.