Trash Bin Table
Trash table listing deleted files with deleter, deletion time, days until permanent removal, and per-row restore and delete-forever actions.
Trash table listing deleted files with deleter, deletion time, days until permanent removal, and per-row restore and delete-forever actions.
The Application Collection unlocks the source for every Application block. All Access unlocks every Collection.
Already purchased? Log in
Trash Bin Table surfaces recoverable deletes before they are gone forever: a shadcn Table with columns for file name and icon, the deleter avatar and name, deletion timestamp, and days remaining until permanent removal. Jordan Lee deleted Legacy auth module.ts on May 20 with 6 days left; Avery Stone deleted 2025 budget model.xlsx on May 15 with just 1 day left, shown as an outline Badge to signal urgency. Each row carries Restore and Delete forever buttons; the header carries Empty trash. The footer states that permanent deletion cannot be undone and is not recoverable by support.
Trashed files are one typed const array; the DaysLeftBadge helper switches to outline below three days so urgency surfaces without a status color. The 30-day policy is stated in the description so users know the clock without reading the docs.
Reach for this block on the file manager trash page, wired to your deleted-files endpoint. Sort by daysLeft ascending so the most urgent rows surface first and confirm Delete forever with a dialog before executing.
A natural flow around it on an Application Pro page:
Before
After
One strong use is the workspace trash with admin view of all members deletions. Other trash surfaces:
Tip: the urgency badge on files under three days handles the support ticket before it gets written, state the expiry in the UI not the help center.