Skip to content

Latest commit

 

History

History
83 lines (54 loc) · 3.71 KB

delete-an-add-on.md

File metadata and controls

83 lines (54 loc) · 3.71 KB
author ms.assetid description title ms.author ms.date ms.topic ms.prod ms.technology keywords ms.localizationpriority
mcleanbyron
16D4C3B9-FC9B-46ED-9F87-1517E1B549FA
Use this method in the Microsoft Store submission API to delete an add-on for an app that is registered to your Windows Dev Center account.
Delete an add-on
mcleans
02/08/2017
article
windows
uwp
windows 10, uwp, Microsoft Store submission API, add-on, delete, in-app product, IAP
medium

Delete an add-on

Use this method in the Microsoft Store submission API to delete an add-on (also known as in-app product or IAP) for an app that is registered to your Windows Dev Center account.

Prerequisites

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.

Request

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/inappproducts/{inAppProductId}

Request header

Header Type Description
Authorization string Required. The Azure AD access token in the form Bearer <token>.

Request parameters

Name Type Description
id string Required. The Store ID of the add-on to delete. The Store ID is available on the Dev Center dashboard.

Request body

Do not provide a request body for this method.

Request example

The following example demonstrates how to delete an add-on.

DELETE https://manage.devcenter.microsoft.com/v1.0/my/inappproducts/9NBLGGH4TNMP HTTP/1.1
Authorization: Bearer <your access token>

Response

If successful, this method returns an empty response body.

Error codes

If the request cannot be successfully completed, the response will contain one of the following HTTP error codes.

Error code Description
400 The request is invalid.
404 The specified add-on could not be found.
409 The specified add-on was found but it could not be deleted in its current state, or the add-on uses a Dev Center dashboard feature that is currently not supported by the Microsoft Store submission API.

Related topics