PHPackages                             falcon/laravel-medialibrary-prune-files - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [File &amp; Storage](/categories/file-storage)
4. /
5. falcon/laravel-medialibrary-prune-files

ActivePackage[File &amp; Storage](/categories/file-storage)

falcon/laravel-medialibrary-prune-files
=======================================

Laravel package to prune stale files created by spatie medialibrary

1.2.1(1y ago)0353MITPHP

Since Apr 29Pushed 1y ago1 watchersCompare

[ Source](https://github.com/mucenica-bogdan/laravel-medialibrary-prune-files)[ Packagist](https://packagist.org/packages/falcon/laravel-medialibrary-prune-files)[ RSS](/packages/falcon-laravel-medialibrary-prune-files/feed)WikiDiscussions main Synced yesterday

READMEChangelog (4)Dependencies (2)Versions (5)Used By (0)

Media library prune
===================

[](#media-library-prune)

Laravel package to prune stale files created by [spatie medialibrary](https://github.com/spatie/laravel-medialibrary)

Install
=======

[](#install)

```
composer require falcon/laravel-medialibrary-prune-files

```

Run
===

[](#run)

Basic ussage

```
php artisan media-library:prune-files app/public

```

Checks for media folders inside of a filesystem disk that do not have a media library record in the database.

A folder is an *"media folder"* if:

- the folder name is numeric AND
- the folder contains only files OR the directories within the are either `responsive-images` or `conversions`

If you want to just check what files are going to be deleted, you can use the `--dry-run` command option

```
php artisan media-library:prune-files app/public --dry-run

```

BY default the package will use the `local` disk. To change it use the `--disk` option

```
php artisan media-library:prune-files media-libary --dry-run --disk=public

```

Change log
==========

[](#change-log)

v1.0.0 - 29-04-2020
-------------------

[](#v100---29-04-2020)

- Initial release

###  Health Score

28

—

LowBetter than 51% of packages

Maintenance31

Infrequent updates — may be unmaintained

Popularity12

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity52

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~283 days

Total

4

Last Release

722d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/bcef2b9c01ecf9dae4f0de303a51173226e0eb89fd1364f09daf5d81c7457ef2?d=identicon)[mucenica.bogdan](/maintainers/mucenica.bogdan)

---

Top Contributors

[![mucenica-bogdan](https://avatars.githubusercontent.com/u/846097?v=4)](https://github.com/mucenica-bogdan "mucenica-bogdan (4 commits)")

### Embed Badge

![Health badge](/badges/falcon-laravel-medialibrary-prune-files/health.svg)

```
[![Health](https://phpackages.com/badges/falcon-laravel-medialibrary-prune-files/health.svg)](https://phpackages.com/packages/falcon-laravel-medialibrary-prune-files)
```

###  Alternatives

[nasirkhan/laravel-starter

A CMS like modular Laravel starter project.

1.4k2.7k](/packages/nasirkhan-laravel-starter)[slimani/filament-media-manager

A media manager plugin for Filament.

179.7k1](/packages/slimani-filament-media-manager)[statamic-rad-pack/runway

Eloquently manage your database models in Statamic.

137236.2k8](/packages/statamic-rad-pack-runway)[duncanmcclean/statamic-cargo

Comprehensive e-commerce addon for Statamic. Build bespoke e-commerce sites without the complexity.

3622.8k](/packages/duncanmcclean-statamic-cargo)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
