SharePoint Document Issues

How to Fix SharePoint API Returning an Empty Recycle Bin

Ayan MasoodAyan Masood Oct 26, 2026 868 views

Question details

The SharePoint REST API fails to retrieve deleted items, returning an empty feed for the first-stage Recycle Bin.

Product
SharePoint
Device & OS
not provided
Scenario
A developer or user is attempting to query the SharePoint first-stage Recycle Bin via the REST API.
Observed behavior
The REST API query returns an empty result set, even though deleted items are clearly visible when viewing the Recycle Bin through the SharePoint web interface.
Before you start

Ensure that your API client is fully authenticated and you have administrative or owner access to the target SharePoint site collection.

Solution 1Recommended

Verify API Context and Consult Developer Community

Validate your API request parameters, authentication context, and site URL, then seek advanced developer support if the problem persists.

Discrepancies between the SharePoint web interface and REST API responses typically stem from authentication context issues, querying the wrong site URL, or missing permissions for the app executing the call.

1
Verify the Site URL

Check your API endpoint URL to ensure it accurately targets the specific SharePoint site collection or subweb where the deleted items actually reside.

2
Validate Authentication Context

Review your bearer token and API headers to ensure the request is running under the correct user context that has read access to the specific Recycle Bin.

3
Confirm Recycle Bin Stage

Ensure your API query specifically targets the first-stage Recycle Bin. Second-stage (site collection) recycle bins require different endpoints and elevated permissions.

4
Request Community Support

If the setup is correct but the issue continues, post your case in the Microsoft Q&A or SharePoint developer community using the 'sharepoint-dev' and 'office-sharepoint-online' tags. Remember to remove all sensitive tenant and user information before posting.

Verify API Context and Consult Developer Community
Developer Account Note: App-only permissions may behave differently than user-delegated permissions when interacting with personal Recycle Bins in SharePoint.
Free Microsoft Office alternative

Manage Your Documents Seamlessly with WPS Office

If you are encountering frequent API or synchronization issues with SharePoint and Microsoft Office, consider using WPS Office. It provides a lightweight, highly compatible, and free alternative for creating and editing your documents without relying on complex enterprise API setups.

  1. 1. Visit the Official Website: Navigate to wps.com to download the free WPS Office suite for your operating system.
  2. 2. Install the Application: Run the downloaded installer and follow the on-screen prompts to complete the setup.
  3. 3. Open Office Documents: Launch WPS Office and directly open your existing Word, Excel, or PowerPoint files without losing any formatting.
Fully compatible with Microsoft Office formats (.docx, .xlsx, .pptx).Lightweight design with fast installation and launch times.Free alternative with a familiar and intuitive user interface.Built-in cloud support for easy document management, reducing the need for complex API integrations.
microsoft office alternative - wps office

Frequently Asked Questions

Why does the SharePoint Recycle Bin show items in the browser but not via API?

This discrepancy usually occurs due to mismatched authentication contexts, querying the wrong site URL, or lacking explicit API permissions for the specific user context executing the call.

What is the difference between the first-stage and second-stage Recycle Bin in SharePoint?

The first-stage Recycle Bin contains items deleted directly by users. The second-stage (Site Collection) Recycle Bin holds items deleted from the first-stage bin. The API requires different endpoints and permissions to access each stage.

Can I restore SharePoint deleted items using the REST API?

Yes, once you successfully retrieve the items from the Recycle Bin using the correct API endpoint, you can send a POST request with the specific item's GUID to restore it to its original location.