PHPackages                             thelia/remove-useless-cart-module - 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. [Utility &amp; Helpers](/categories/utility)
4. /
5. thelia/remove-useless-cart-module

ActiveThelia-module[Utility &amp; Helpers](/categories/utility)

thelia/remove-useless-cart-module
=================================

2.0.3(1y ago)02402LGPL-3.0+PHP

Since Sep 14Pushed 4d ago6 watchersCompare

[ Source](https://github.com/thelia-modules/RemoveUselessCart)[ Packagist](https://packagist.org/packages/thelia/remove-useless-cart-module)[ RSS](/packages/thelia-remove-useless-cart-module/feed)WikiDiscussions main Synced 2d ago

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

Remove Useless Cart
===================

[](#remove-useless-cart)

Add two ways to remove carts uselessly filling database : from the administration panel or from command line.

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

[](#installation)

### Manually

[](#manually)

- Copy the module into `/local/modules/` directory and be sure that the name of the module is RemoveUselessCart.
- Activate it in your thelia administration panel

### Composer

[](#composer)

Add it in your main thelia composer.json file

```
composer require thelia/remove-useless-cart-module:~2.0

```

Usage
-----

[](#usage)

**Important:** be aware that this operation may take a while with huge databases. Do it in many times or wait for success or error message patiently.

### Administration panel

[](#administration-panel)

- Click 'Configure' in front of the module name
- Select a date from which you want carts to be removed
- Check if you want to remove all carts, even those with products linked
- Click OK

### CLI

[](#cli)

The module adds a new Thelia command :

```
php Thelia carts:remove [arguments] [options]

```

#### Arguments

[](#arguments)

`date` optional (required if --day option isn't set) | *yyyy-mm-dd* formated date. Date from which you want to remove carts.

`time` optional | *hh:mm:ss* formated time. Use it after `date`, separated by a space, for your date to be more specific.

#### Options

[](#options)

`--day=, -d` value required - instead of giving a date, use this option to tell from how many days ago carts have to be removed.

`--all, -a` use this option if you want to remove all carts, even those with products linked.

###  Health Score

45

—

FairBetter than 91% of packages

Maintenance73

Regular maintenance activity

Popularity16

Limited adoption so far

Community13

Small or concentrated contributor base

Maturity67

Established project with proven stability

 Bus Factor1

Top contributor holds 50% 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 ~402 days

Total

3

Last Release

508d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/2196919?v=4)[thelia](/maintainers/thelia)[@thelia](https://github.com/thelia)

---

Top Contributors

[![NicolasBarbey](https://avatars.githubusercontent.com/u/26166378?v=4)](https://github.com/NicolasBarbey "NicolasBarbey (2 commits)")[![zawaze](https://avatars.githubusercontent.com/u/37273643?v=4)](https://github.com/zawaze "zawaze (2 commits)")

### Embed Badge

![Health badge](/badges/thelia-remove-useless-cart-module/health.svg)

```
[![Health](https://phpackages.com/badges/thelia-remove-useless-cart-module/health.svg)](https://phpackages.com/packages/thelia-remove-useless-cart-module)
```

PHPackages © 2026

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