Delete bundle

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 a bundle of driveItems by using its id. Note that deleting a bundle using this method permanently deletes the bundle and does not move it to the Recycle Bin. It does not, however, remove the items that were referenced by the bundle. They will remain in their parent folders.

Permissions

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

Permission type Permissions (from least to most privileged)
Delegated (work or school account) Not supported.
Delegated (personal Microsoft account) Files.ReadWrite, Files.ReadWrite.All
Application Not supported.

HTTP request

DELETE /drive/items/{bundle-id}

Request headers

Name Description
Authorization Bearer {token}. Required.
if-match eTag. Optional. If this request header is included and the eTag (or cTag) provided does not match the current tag on the bundle, a 412 Precondition Failed response is returned and the bundle will not be deleted.

Request body

Do not supply a request body with this method.

Response

If successful, this call returns a 204 No Content response to indicate that resource was deleted and there was nothing to return.

Read the Error Responses topic for more info about how errors are returned.

Example

Request

DELETE https://graph.microsoft.com/beta/drive/items/{bundle-id}

Response

HTTP/1.1 204 No Content