How to Remove Deleted Files from Microsoft Teams Chat Files List
Question details
Users need a way to remove references to deleted shared files that persistently remain visible in the Microsoft Teams chat Files tab.

- Product
- Microsoft Teams
- Device & OS
- not provided
- Scenario
- Cleaning up the Teams chat interface and managing shared files.
- Observed behavior
- Files deleted from OneDrive or SharePoint continue to appear in the Teams Chat Files list. Clicking on the file results in an error stating it was moved or deleted, but the reference itself will not disappear from the chat history.
Ensure you have the necessary permissions to delete messages within the specific Microsoft Teams chat or channel, and verify that the file has indeed been permanently removed from its source location in OneDrive or SharePoint.
Delete the Chat Message That Shared the File
Removing the original chat message containing the file attachment will typically force Teams to remove its reference from the shared Files tab.
Microsoft Teams links the items in the Files tab directly to the chat messages that initially shared them. As long as the chat message exists, Teams may retain a ghost link to the file, even if the actual file data is deleted from the cloud storage.
Scroll through your Microsoft Teams chat history to locate the specific message where the deleted file was originally shared.
Hover your cursor over the chat message and click on the three-dot 'More options' icon that appears in the top right corner of the message box.
Select 'Delete' from the dropdown menu. This will remove the message from the chat history and simultaneously clear the file reference from the Files tab.

Remove the Original File from SharePoint or OneDrive
Ensure the file has been completely removed from the underlying host server (SharePoint for Teams channels, OneDrive for 1-on-1 chats) to prevent it from reappearing.
Experience Seamless File Management with WPS Office
Tired of dealing with lingering deleted files, caching errors, and synchronization issues? WPS Office offers a lightweight, completely free alternative to Microsoft Office. It provides powerful document management, reliable cloud sharing, and an intuitive interface that makes file collaboration hassle-free.
- 1. Download WPS Office: Visit the official WPS website and click 'Download WPS Office Free'.
- 2. Install and Launch: Run the lightweight installer and open the application on your device.
- 3. Manage Files Seamlessly: Use the built-in WPS Cloud to store, share, and manage your documents with zero synchronization errors.

Frequently Asked Questions
Why do deleted files still show up in the Teams Files tab?
Microsoft Teams caches chat history and shared file references. Even if the file is successfully deleted from the source (OneDrive or SharePoint), the chat message containing the file link remains in the chat log, which forces the Files tab to display a ghost reference.
Will clearing the Microsoft Teams cache fix persistent file references?
Yes, clearing the Microsoft Teams application cache can sometimes resolve synchronization delays. You can do this by quitting Teams, navigating to %appdata%\Microsoft\Teams in your File Explorer, and deleting the contents before restarting the app.
Will deleting the chat message delete the file for everyone?
Deleting the chat message only removes the visible reference to the file in the chat and Files tab. To completely revoke access and delete the file for everyone, the actual file must be deleted from its source location in OneDrive or SharePoint.
How long does it take for Teams to update after a file is deleted?
Usually, updates happen within a few seconds. However, server synchronization delays can cause deleted files to appear for several minutes or even hours until the Microsoft cache fully refreshes.




