# Delete an App Store version you started by mistake

> Have an Agent delete an App Store version that hasn't been submitted yet, or change its number instead, and start the right version afterwards.

Source: https://air.build/docs/app-store/delete-a-version-you-havent-submitted/

App Store Connect works on one version at a time, so a version you started by mistake, with the wrong number or for an update you've dropped, stands in the way of the right one. If it hasn't been submitted, an Agent can delete it.

> [!NOTE]
> AirBuild has no delete button: on **Store Page**, the version menu creates versions (**New Version…**) but doesn't remove them. Ask an Agent in the Project's chat. It uses `asc versions delete` (listed under `versions` in [asc: apps and App Store listing](https://air.build/docs/cli/asc-apps/#versions)).

## Before you ask

- Only a version that hasn't been submitted can go. The `asc` help says only versions in `PREPARE_FOR_SUBMISSION` state can be deleted. In AirBuild, that's a version marked **Prepare for Submission** in the version menu on **Store Page**. See [Prepare your App Store page](https://air.build/docs/app-store/prepare-your-store-page/#fill-in-the-store-page).
- A version that has been with App Review can't be deleted, whatever came of it: waiting, in review, **Rejected**, **Developer Rejected** after you withdrew it, approved or on sale.
- If only the number is wrong, you don't need to delete it. An Agent can change the number of the same version with `asc versions update --version`, and everything you filled in for it stays. Ask for example: "Change version 2.0 to 1.4."

## Delete it

Ask in the Project's chat, for example:

```text
I started version 2.0 by mistake. Delete it if it hasn't been submitted.
```

1. The Agent finds the version and reads its state with `asc versions list` or `asc versions view`. A version in any other state than `PREPARE_FOR_SUBMISSION` can't be deleted, and the Agent tells you so.
2. `asc` deletes a version only with `--confirm`, so the Agent asks you first. Answer only if you're sure: the version is removed from App Store Connect, and `asc` has no command to bring it back. If you wrote anything for this version you want to keep, such as its What's New text, ask the Agent to copy it into the chat before you say yes.
3. On your yes, the Agent runs `asc versions delete`. The command reports that the version was deleted, with its ID.
4. Open **Store Page** again: the version menu no longer lists it.

## Start the right version

With the mistaken version gone, the version menu offers **New Version…** again, unless another version is still open. Start the right one there, or from **Progress** while the app is on sale; see [Ship an update to your app](https://air.build/docs/app-store/ship-an-update/#start-the-next-version). Apple's help says a new version starts with the current version's metadata. See Apple's [Create a new version](https://developer.apple.com/help/app-store-connect/update-your-app/create-a-new-version).

## Questions

**The Agent says the version can't be deleted.**

Either it isn't in **Prepare for Submission**, or Apple refused, and the Agent shows Apple's reason. A version that went to App Review can't be deleted. If Apple rejected it, fix it and submit it again as the same version; see [Ship an update to your app](https://air.build/docs/app-store/ship-an-update/#questions).

**The version is waiting for review. Can I withdraw it and then delete it?**

No. A withdrawn version shows **Developer Rejected**, which can't be deleted. Withdraw it only to change it and submit it again. See [Withdraw a version from App Review](https://air.build/docs/app-store/withdraw-from-app-review/).

**The menu says “New Version — n is still in progress”.**

That's the open version. If it shows **Prepare for Submission** and you don't want it, delete it as above, or change its number and use it.

**Can I delete the version that's on the App Store?**

No. To stop selling the app, see [Take your app off sale](https://air.build/docs/app-store/take-your-app-off-sale/). To remove the whole app record, see [Delete an app record you don't need](https://air.build/docs/app-store/delete-an-app-record/).
