author | ms.assetid | description | title | ms.author | ms.date | ms.topic | ms.prod | ms.technology | keywords | ms.localizationpriority |
---|---|---|---|---|---|---|---|---|---|---|
mcleanbyron |
AD80F9B3-CED0-40BD-A199-AB81CDAE466C |
Use this method in the Microsoft Store submission API to delete a package flight for an app that is registered to your Windows Dev Center account. |
Delete a package flight |
mcleans |
04/17/2018 |
article |
windows |
uwp |
windows 10, uwp, Microsoft Store submission API, delete flight |
medium |
Use this method in the Microsoft Store submission API to delete a package flight for an app that is registered to your Windows Dev Center account.
To use this method, you need to first do the following:
- If you have not done so already, complete all the prerequisites for the Microsoft Store submission API.
- Obtain an Azure AD access token to use in the request header for this method. After you obtain an access token, you have 60 minutes to use it before it expires. After the token expires, you can obtain a new one.
This method has the following syntax. See the following sections for usage examples and descriptions of the header and request body.
Method | Request URI |
---|---|
DELETE | https://manage.devcenter.microsoft.com/v1.0/my/applications/{applicationId}/flights/{flightId} |
Header | Type | Description |
---|---|---|
Authorization | string | Required. The Azure AD access token in the form Bearer <token>. |
Name | Type | Description |
---|---|---|
applicationId | string | Required. The Store ID of the app that contains the package flight you want to delete. The Store ID for the app is available on the Dev Center dashboard. |
flightId | string | Required. The ID of the package flight to delete. This ID is available in the response data for requests to create a package flight and get package flights for an app. For a flight that was created in the Dev Center dashboard, this ID is also available in the URL for the flight page in the dashboard. |
Do not provide a request body for this method.
The following example demonstrates how to delete a package flight.
DELETE https://manage.devcenter.microsoft.com/v1.0/my/applications/9NBLGGH4R315/flights/43e448df-97c9-4a43-a0bc-2a445e736bcd HTTP/1.1
Authorization: Bearer <your access token>
If successful, this method returns an empty response body.
If the request cannot be successfully completed, the response will contain one of the following HTTP error codes.
Error code | Description |
---|---|
400 | The request parameters are invalid. |
404 | The specified package flight could not be found. |
409 | The specified package flight was found but it could not be deleted in its current state, or the app uses a Dev Center dashboard feature that is currently not supported by the Microsoft Store submission API. |