Bug - Tina Media Manager - Error Message on Successful File Deletion
Requested by: @jakebayliss via YakShaver.ai cc: @Berber-Mama, @jakebayliss, @kulesy, @adamcogan, @JackDevAU
Hi Team!
Watch the video (1 min 49 sec)
Url from screen share: https://ssw.com.au/rules-beta/admin/#/rules-beta/background
Pain
The branch-aware media work in April 2026 fixed most deletes, but the reported case still fails. When a file exists in storage with no matching entry in the repository, the browser polls for 30 seconds, then shows "Failed to delete file." even though the bytes are already gone, and the stale index entry is left behind, so the grid does not catch up on a refresh either. Files in that orphaned state still exist on the SSW Rules admin.
Approach
Write a request status on the not-in-repository path so the client finishes instead of timing out, and clear the index entry there too.
Acceptance Criteria
- Deleting a file that is in storage but not in the repository completes with no error message.
- The file leaves the media grid without a refresh, and stays gone after one.
Reproduce Steps
- Navigate to the root folder of the media manager in TinaCMS.
- Select a test image file to delete.
- Click the delete button.
- Observe the error message 'Failed to delete file'.
Screenshot
Figure: Error message appears after attempting to delete a file, but the file is actually deleted.
Source: tinacms/tinacms