Skip to content

Latest commit

 

History

History
156 lines (107 loc) · 5.19 KB

File metadata and controls

156 lines (107 loc) · 5.19 KB
title Delete teamsApp
description Delete an app from an organization's app catalog (the tenant app catalog).
ms.localizationpriority medium
author MSFTRickyCastaneda
ms.subservice teams
doc_type apiPageType
ms.date 09/17/2024

Delete teamsApp

Namespace: microsoft.graph

[!INCLUDE beta-disclaimer]

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.

[!INCLUDE national-cloud-support]

Permissions

The following tables show the least privileged permission or permissions required to call this API on each supported resource type. Follow best practices to request least privileged permissions. For details about delegated and application permissions, see Permission types. To learn more about these permissions, see the permissions reference.

Note

  • The Directory.ReadWrite.All permission is supported only for backward compatibility. We recommend that you update your solutions to use an alternative permission and avoid using this permissions going forward.
  • You can only use the AppCatalog.Submit permission to delete app definitions in review.
  • Only Teams Service admins or a higher privileged role can call this API.

Permissions for the following HTTP request:

DELETE /appCatalogs/teamsApps/{id}

[!INCLUDE permissions-table]

Permissions for the following HTTP request:

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

[!INCLUDE permissions-table]

HTTP request

To delete an app from the app catalog:

DELETE /appCatalogs/teamsApps/{id}

To delete an app that is submitted but isn't yet approved:

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

Request headers

Header Value
Authorization Bearer {token}. Required. Learn more about authentication and authorization.

Request body

Don't 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 doesn't return anything in the response body.

Example

Request

The following example shows a request.

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

[!INCLUDE sample-code] [!INCLUDE sdk-documentation]

[!INCLUDE sample-code] [!INCLUDE sdk-documentation]

[!INCLUDE sample-code] [!INCLUDE sdk-documentation]

[!INCLUDE sample-code] [!INCLUDE sdk-documentation]

[!INCLUDE sample-code] [!INCLUDE sdk-documentation]

[!INCLUDE sample-code] [!INCLUDE sdk-documentation]

[!INCLUDE sample-code] [!INCLUDE sdk-documentation]


Response

The following example shows the response.

HTTP/1.1 204 No Content

Related content

Microsoft Graph service-specific throttling limits