PHPackages                             edofre/laravel-softdelete-cleanup - 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. [CLI &amp; Console](/categories/cli)
4. /
5. edofre/laravel-softdelete-cleanup

ActiveLibrary[CLI &amp; Console](/categories/cli)

edofre/laravel-softdelete-cleanup
=================================

Console command to cleanup your database from softdeleted models

V1.3.0(5y ago)326MITPHPPHP &gt;=5.6.4CI failing

Since Feb 2Pushed 5y ago1 watchersCompare

[ Source](https://github.com/Edofre/laravel-softdelete-cleanup)[ Packagist](https://packagist.org/packages/edofre/laravel-softdelete-cleanup)[ Docs](https://github.com/edofre/laravel-softdelete-cleanup)[ RSS](/packages/edofre-laravel-softdelete-cleanup/feed)WikiDiscussions master Synced 2mo ago

READMEChangelog (6)Dependencies (3)Versions (13)Used By (0)

Laravel Softdelete Cleanup
==========================

[](#laravel-softdelete-cleanup)

[![Latest Stable Version](https://camo.githubusercontent.com/95cffee26bf983a9a11c02ace157831c21862be7a3faec3202420c9ac81e6f36/68747470733a2f2f706f7365722e707567782e6f72672f65646f6672652f6c61726176656c2d736f667464656c6574652d636c65616e75702f762f737461626c65)](https://packagist.org/packages/edofre/laravel-softdelete-cleanup)[![Total Downloads](https://camo.githubusercontent.com/072f9de4c0bfe5b1ae8d39d8edf5c03390be505b8faa70df7efb314273b52475/68747470733a2f2f706f7365722e707567782e6f72672f65646f6672652f6c61726176656c2d736f667464656c6574652d636c65616e75702f646f776e6c6f616473)](https://packagist.org/packages/edofre/laravel-softdelete-cleanup)[![Latest Unstable Version](https://camo.githubusercontent.com/7cd8d5e348b258bdbf56a7ee5c517e5352bc2fb84293e340cbce8e2464f35be9/68747470733a2f2f706f7365722e707567782e6f72672f65646f6672652f6c61726176656c2d736f667464656c6574652d636c65616e75702f762f756e737461626c65)](https://packagist.org/packages/edofre/laravel-softdelete-cleanup)[![License](https://camo.githubusercontent.com/2d2ae9735aa92d2e343103aa78177b0b84d65c17a1db71c8c1b5ea6b4c62b658/68747470733a2f2f706f7365722e707567782e6f72672f65646f6672652f6c61726176656c2d736f667464656c6574652d636c65616e75702f6c6963656e7365)](https://packagist.org/packages/edofre/laravel-softdelete-cleanup)[![composer.lock](https://camo.githubusercontent.com/92032651e98d1f7335d71aa4fedd1b2c3c0c97677547d4ed328ecd0fab3c97b2/68747470733a2f2f706f7365722e707567782e6f72672f65646f6672652f6c61726176656c2d736f667464656c6574652d636c65616e75702f636f6d706f7365726c6f636b)](https://packagist.org/packages/edofre/laravel-softdelete-cleanup)[![Build Status](https://camo.githubusercontent.com/f3272fdc28fe210b91dc9cee11e06a15a822040deffa9c6104174a65ea7064be/68747470733a2f2f7472617669732d63692e6f72672f45646f6672652f6c61726176656c2d736f667464656c6574652d636c65616e75702e7376673f6272616e63683d6d6173746572)](https://travis-ci.org/Edofre/laravel-softdelete-cleanup)[![Code Climate](https://camo.githubusercontent.com/4fa9a781970d922c617893fa29af29e1c85ba16683b92bdb1d2365cce8a503e3/68747470733a2f2f636f6465636c696d6174652e636f6d2f6769746875622f45646f6672652f6c61726176656c2d736f667464656c6574652d636c65616e75702f6261646765732f6770612e737667)](https://codeclimate.com/github/Edofre/laravel-softdelete-cleanup)[![Build Status](https://camo.githubusercontent.com/f3272fdc28fe210b91dc9cee11e06a15a822040deffa9c6104174a65ea7064be/68747470733a2f2f7472617669732d63692e6f72672f45646f6672652f6c61726176656c2d736f667464656c6574652d636c65616e75702e7376673f6272616e63683d6d6173746572)](https://travis-ci.org/Edofre/laravel-softdelete-cleanup)

Installation
------------

[](#installation)

The preferred way to install this extension is through [composer](http://getcomposer.org/download/).

To install, either run

```
$ php composer.phar require edofre/laravel-softdelete-cleanup

```

or add

```
"edofre/laravel-softdelete-cleanup": "V1.3.0"

```

to the `require` section of your `composer.json` file.

Executing
---------

[](#executing)

The following command will then remove all the trashed items from the User, note that the User model is not in the default namespace.

```
php artisan db:softdelete-cleanup App\\Models\\User

```

Tests
-----

[](#tests)

Run the tests by executing the following command:

```
composer test

```

Feature requests
----------------

[](#feature-requests)

- Set the number of days from which the items should be deleted
- ?

###  Health Score

29

—

LowBetter than 60% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity10

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity65

Established project with proven stability

 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 ~119 days

Recently: every ~317 days

Total

12

Last Release

2080d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/01cd9d2772b5c19c989c92093a092bd087524cee9629b0e715ccb4125a69f2e8?d=identicon)[edofre](/maintainers/edofre)

---

Top Contributors

[![Edofre](https://avatars.githubusercontent.com/u/710429?v=4)](https://github.com/Edofre "Edofre (60 commits)")

---

Tags

artisancomposerconsolelaravellaravel-softdelete-cleanupconsolelaravelcommandsoftdeletecleanup

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/edofre-laravel-softdelete-cleanup/health.svg)

```
[![Health](https://phpackages.com/badges/edofre-laravel-softdelete-cleanup/health.svg)](https://phpackages.com/packages/edofre-laravel-softdelete-cleanup)
```

###  Alternatives

[illuminated/console-mutex

Mutex for Laravel Console Commands.

146938.2k1](/packages/illuminated-console-mutex)[hydreflab/laravel-make-me

Extendable Interactive Make Command for Laravel

371.2k](/packages/hydreflab-laravel-make-me)

PHPackages © 2026

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