question

DeepakSharma-3636 avatar image
0 Votes"
DeepakSharma-3636 asked HarmeetSinghMSFT-7172 answered

MS Graph: Deleting aone note page using graph API is permanently deleting the page and not moving it under delete notes

We are using the following Microsoft Graph API to delete OneNote page.

https://docs.microsoft.com/en-us/graph/api/page-delete?view=graph-rest-1.0&tabs=http

When deleting the page using API its permanently getting deleted and is not moved in the Deleted notes, but if we delete from OneNote client then the page is moved under delete notes.

We really need a way to recover deleted notes, this should work consistent from OneNote client UI and API.

microsoft-graph-applicationsmicrosoft-graph-notes
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

ZehuiYaoMSFT-7151 avatar image
0 Votes"
ZehuiYaoMSFT-7151 answered DeepakSharma-3636 edited

Hello @DeepakSharma-3636, According to my understanding, the delete operation of graph means that the data has been completely removed. You can open a support ticket and ask for help in the Microsoft back end to see if there are any good suggestions.



If the answer is helpful, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".
Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.

· 1
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

Well that's not consistent, If I delete a folder/file in SharePoint using Graph call it still moves in Recycled bin folder. Its only OneNote that behaves different here.

0 Votes 0 ·
HarmeetSinghMSFT-7172 avatar image
0 Votes"
HarmeetSinghMSFT-7172 answered

Hi @DeepakSharma-3636

Hope you are doing well.

I'm also able to replicate this issue. Yes agreed, In graph API there is no documentation clearly called it out. But I could able to find some reference related to OneNote Office 365 REST APIs and I think the graph API also behaves the same way as Office 365 REST APIs like before.

186474-deletepage.png

If the answer is helpful, please click "Accept Answer" and kindly upvote it. If you have further questions about this answer, please click "Comment".



deletepage.png (25.1 KiB)
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.