Skip to content

Trash Bin & Soft Deletes ​

When soft_deletes is enabled (the default), deleting files or folders marks their database records as deleted and keeps file contents on disk for restoration. The Trash sidebar entry is hidden when soft deletes are disabled.

Key Capabilities

  • Dedicated Bin View: Access the Trash Bin directly from the sidebar. Shows all soft-deleted items on the current disk.
  • One-Click Restore: Restore individual items from the context dropdown or select multiple items and click Restore Selected.
  • Permanent Deletion: Delete individual or selected trashed items to remove stored file contents and database records. Deleting a folder also removes its nested files.
  • Empty Trash: Purge all trashed files and folders across the selected disk with a single click.
php
// config/filament-sanchaya.php
'soft_deletes' => true, // Set to false to immediately force-delete files from disk

Permanent deletion cannot be undone. With soft_deletes set to false, the ordinary Delete action is permanent.

Released under the MIT License.