# Application File Manager: Trash Bin Table

Trash table listing deleted files with deleter, deletion time, days until permanent removal, and per-row restore and delete-forever actions.

- Page: https://www.shadcn-ui-blocks.com/blocks/application-pro/file-manager/trash-bin-table
- Collection: [Application](https://www.shadcn-ui-blocks.com/blocks/application-pro), Standard tier
- Group: [File Manager](https://www.shadcn-ui-blocks.com/blocks/application-pro/file-manager)
- Created: 2026-06-15
- Preview image: https://www.shadcn-ui-blocks.com/blocks/application-pro/file-manager/trash-bin-table.png

## Install

```bash
npx shadcn@latest add @shadcn-ui-blocks/application-pro-file-manager-trash-bin-table
```

Needs an API key from a Pro or Team plan: add `@shadcn-ui-blocks` to the registries in components.json with the key as an `Authorization: Bearer` header. Setup: https://www.shadcn-ui-blocks.com/docs/shadcn-cli. The MCP server installs it without the setup: https://www.shadcn-ui-blocks.com/docs/mcp.

## Depends on

- npm packages: class-variance-authority, lucide-react, radix-ui
- shadcn/ui components: avatars, badge, button, table
- Installs to: `@/components/blocks/application-pro/file-manager/trash-bin-table`

## About this block

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.

## When to use

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**

- [Shared with me table](https://www.shadcn-ui-blocks.com/blocks/application-pro/file-manager)
- [Recent files list](https://www.shadcn-ui-blocks.com/blocks/application-pro/file-manager)

**After**

- [Empty state](https://www.shadcn-ui-blocks.com/blocks/application-pro/empty-states)
  when trash is clear

## What you can display

One strong use is the workspace trash with admin view
of all members deletions. Other trash surfaces:

- **Personal trash.** Filtered to only the current
  user rows, no deleted-by column needed.
- **Version history.** Old file versions with the same
  expiry countdown and restore affordance.
- **Archived projects.** Soft-deleted projects with
  restore and permanent-remove in the same table shape.

> 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.

## More in Application File Manager

- [File Activity Feed](https://www.shadcn-ui-blocks.com/blocks/application-pro/file-manager/file-activity-feed)
- [File Browser Table](https://www.shadcn-ui-blocks.com/blocks/application-pro/file-manager/file-browser-table)
- [File Conflict Resolver](https://www.shadcn-ui-blocks.com/blocks/application-pro/file-manager/file-conflict-resolver)
- [File Detail Panel](https://www.shadcn-ui-blocks.com/blocks/application-pro/file-manager/file-detail-panel)
- [File Grid Gallery](https://www.shadcn-ui-blocks.com/blocks/application-pro/file-manager/file-grid-gallery)
- [File Request Panel](https://www.shadcn-ui-blocks.com/blocks/application-pro/file-manager/file-request-panel)
- [File Search Results](https://www.shadcn-ui-blocks.com/blocks/application-pro/file-manager/file-search-results)
- [File Version History](https://www.shadcn-ui-blocks.com/blocks/application-pro/file-manager/file-version-history)
- [Folder Tree Nav](https://www.shadcn-ui-blocks.com/blocks/application-pro/file-manager/folder-tree-nav)
- [Recent Files List](https://www.shadcn-ui-blocks.com/blocks/application-pro/file-manager/recent-files-list)
- [Share Permissions Panel](https://www.shadcn-ui-blocks.com/blocks/application-pro/file-manager/share-permissions-panel)
- [Shared Links Table](https://www.shadcn-ui-blocks.com/blocks/application-pro/file-manager/shared-links-table)
- [Shared With Me Table](https://www.shadcn-ui-blocks.com/blocks/application-pro/file-manager/shared-with-me-table)
- [Storage Cleanup Panel](https://www.shadcn-ui-blocks.com/blocks/application-pro/file-manager/storage-cleanup-panel)
- [Storage Usage Card](https://www.shadcn-ui-blocks.com/blocks/application-pro/file-manager/storage-usage-card)
- [Sync Status Panel](https://www.shadcn-ui-blocks.com/blocks/application-pro/file-manager/sync-status-panel)
- [Upload Dropzone Card](https://www.shadcn-ui-blocks.com/blocks/application-pro/file-manager/upload-dropzone-card)
