Delete bundle

Namespace: microsoft.graph

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 for this method.

Response

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

For information about error responses, see Microsoft Graph error responses and resource types.

Example

Request

The following is an example of a request.

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

Response

The following is an example of the response.

HTTP/1.1 204 No Content