Unfollow drive item
Namespace: microsoft.graph
Unfollow a driveItem.
Note: To follow an item, see Follow Item.
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) | Files.Read, Files.ReadWrite, Files.Read.All, Files.ReadWrite.All, Sites.Read.All, Sites.ReadWrite.All |
| Delegated (personal Microsoft account) | Not supported. |
| Application | Files.Read.All, Files.ReadWrite.All, Sites.Read.All, Sites.ReadWrite.All |
HTTP request
DELETE /me/drive/following/{item-id}
DELETE /users/{user-id}/drive/following/{item-id}
POST /me/drive/items/{item-id}/unfollow
POST /users/{user-id}/drive/items/{item-id}/unfollow
Request body
No request body is required.
Response
If successful, the API call returns a 204 No Content. It does not return anything in the response body.
Example
Request
Here is an example of the request.
This example unfollows an item identified by {item-id}.
POST /me/drive/items/{item-id}/unfollow
Response
HTTP/1.1 204 No Content
Feedback
Submit and view feedback for