Delete a historyItem

Important: APIs under the /beta version in Microsoft Graph are in preview and are subject to change. Use of these APIs in production applications is not supported.

Delete an existing history item for an existing user activity.

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) UserActivity.ReadWrite.CreatedByApp
Delegated (personal Microsoft account) UserActivity.ReadWrite.CreatedByApp
Application Not supported.

HTTP request

DELETE /me/activities/{id}/historyItems/{id}

Request headers

Name Type Description
Authorization string Bearer {token}. Required.

Request body

No request body.

Response

If successful, this method returns the 204 No Content response code if the history item was deleted.

Example

Request

Here is an example of the request.

PUT https://graph.microsoft.com/beta/me/activities/13881113971988980728/historyItems/390e06e2-7e5b-4133-8014-fac7ac5991af
Response

Here is an example of the response.

HTTP/1.1 204 No Content