Delete teamsApp

Namespace: microsoft.graph

Important

APIs under the /beta version in Microsoft Graph are subject to change. Use of these APIs in production applications is not supported. To determine whether an API is available in v1.0, use the Version selector.

Delete an app from an organization's app catalog (the tenant app catalog). To delete an app, the distributionMethod property for the app must be set to organization.

You can also use this API to remove a submitted app from the review process.

Permissions

One of the following permissions is required to call this API. To learn more, including how to choose permissions, see Permissions.

Note: Only global administrators can call this API.

Permission Type Permissions (from least to most privileged)
Delegated (work or school account) AppCatalog.ReadWrite.All, Directory.ReadWrite.All
Delegated (work or school account) AppCatalog.Submit
Delegated (personal Microsoft account) Not supported.
Application Not supported.

HTTP request

To delete an app from the app catalog:

DELETE /appCatalogs/teamsApps/{id}

To delete an app that has been submitted but has not been approved:

DELETE appCatalogs/teamsApps/{appId}/appDefinitions/{appDefinitionId}

Request headers

Header Value
Authorization Bearer {token}. Required.

Request body

Do not supply a request body for this method.

Note: Use the ID returned from the List published apps call to reference the app you'd like to delete. Do not use the ID from the manifest of the zip app package.

Response

If successful, this method returns a 204 No Content response code. It does not return anything in the response body.

Example

Request

DELETE https://graph.microsoft.com/beta/appCatalogs/teamsApps/06805b9e-77e3-4b93-ac81-525eb87513b8

Response

HTTP/1.1 204 No Content