Skip to content

Deleting folder/file from File Manager does not delete it from S3 #23

@cloudhivedc

Description

@cloudhivedc

Bug 2

Problem:
When deleting a file or folder in File Manager (database mode), the record is removed from the database but the actual file/folder remains on S3. This causes File System page to still show deleted items.
Workaround:
Manual deletion via cloud provider console, or a custom Artisan command that compares DB records with S3 and deletes orphaned files.
Suggestion: On delete, also call Storage::disk($disk)->delete($storagePath) or Storage::disk($disk)->deleteDirectory($storagePath).

Environment:

Laravel 12.54.1
Filament 5.3.5
PHP 8.4
mwguerra/filemanager ^2.0
Hetzner Object Storage (S3-compatible, hel1)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions