Exclude SharePoint deleted sites from Microsoft Graph API search response

Exclude SharePoint deleted sites from Microsoft Graph API search response
0

Upvotes

Upvote

 May 11 2021
2 Comments (2 New)
Completed
When I do a search for SharePoint online sites using Microsoft graph endpoint https://graph.microsoft.com/v1.0/sites?search=*, it returns very old deleted sites along with active sites in SharePoint admin centre. These deleted sites are not in 'Deleted sites' of SharePoint  admin centre. When I've accessed these sites in SharePoint online using the site URL provided by the above graph search API, it gives '404 NOT FOUND'. When I've accessed the site using graph API GET /sites/{site-id}, it gives 'itemNotFound' error. Is there anyway to exclude these sites from the search response?
Comments
Microsoft
Status changed to: Completed
 
Microsoft

Hi, we apologize for the confusion where to post your Graph feedback. This community was intended to be a temporary location to submit product feature suggestions between Microsoft moving off of UserVoice and the release of Microsoft's official Feedback portal app. Now that the latter is released, we encourage you to resubmit this great suggestion on the official Microsoft Graph Feedback portal at Microsoft Graph · Community.

Kind regards,

Linda

Microsoft 365 Developer Platform community steward