Delete files from sharepoint using GRAPH API
<p>From <a href="https://stackoverflow.com/questions/33878180/trying-to-search-sharepoint-files-using-microsoft-graph-api">Trying to search Sharepoint files using Microsoft Graph api</a> i know that for accessing sharepoint i need to omit 'me' and use the endpoint.</p>

<p><a href="https://graph.microsoft.com/v1.0/drive/root" rel="nofollow noreferrer">https://graph.microsoft.com/v1.0/drive/root</a> </p>

<p>But when i follow the documentation at <a href="https://graph.microsoft.io/en-us/docs/api-reference/v1.0/api/item_delete" rel="nofollow noreferrer">https://graph.microsoft.io/en-us/docs/api-reference/v1.0/api/item_delete</a> , I get error code 'unauthenticated' as response. </p>

<p>I am able to delete files from OneDrive using above method but not from sharepoint. What could be a possible solution?</p>