Hi @Vivek Kumar ,
Are you using the graph api or the rest api? Based on my research and testing, you can use the following API to list files from SharePoint sites, In my test , if I delete/create SharePoint files ,it will reflect immediately. Hope it can help you .
Graph API:
GET https://graph.microsoft.com/v1.0/sites('site-id')/lists('list-id')/items
Rest API:
GET /_api/web/GetFolderByServerRelativeUrl('/sites/xxx/listname')/Files
More information for reference:
Graph API: https://learn.microsoft.com/en-us/graph/api/listitem-list?view=graph-rest-1.0&tabs=http#http-request
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.