PHPackages                             netcommons/clean-up - 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. netcommons/clean-up

ActiveCakephp-plugin[Utility &amp; Helpers](/categories/utility)

netcommons/clean-up
===================

CleanUp for NetCommons Plugin

3.3.7.0(2y ago)028.0k↓53.3%1LicenseRef-NetCommonsPHP

Since Oct 8Pushed 2y ago15 watchersCompare

[ Source](https://github.com/NetCommons3/CleanUp)[ Packagist](https://packagist.org/packages/netcommons/clean-up)[ Docs](http://www.netcommons.org/)[ RSS](/packages/netcommons-clean-up/feed)WikiDiscussions master Synced today

READMEChangelog (10)Dependencies (9)Versions (16)Used By (1)

CleanUp
=======

[](#cleanup)

[![Tests Status](https://github.com/NetCommons3/CleanUp/actions/workflows/tests.yml/badge.svg?branch=master)](https://github.com/NetCommons3/CleanUp/actions/workflows/tests.yml)[![Coverage Status](https://camo.githubusercontent.com/ae53918cb1e399294f3cb19c72d29afb72922aee7022404deba4749ddf00bc36/68747470733a2f2f636f766572616c6c732e696f2f7265706f732f4e6574436f6d6d6f6e73332f436c65616e55702f62616467652e7376673f6272616e63683d6d6173746572)](https://coveralls.io/r/NetCommons3/CleanUp?branch=master)[![Stable Version](https://camo.githubusercontent.com/c40349d413a691a1be82752c342478c399047d58a581e45c48c9a97ffc6fc241/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f6e6574636f6d6d6f6e732f636c65616e2d75702e7376673f6c6162656c3d737461626c65)](https://packagist.org/packages/netcommons/clean-up)

### [phpdoc](https://netcommons3.github.io/NetCommons3Docs/phpdoc/CleanUp/)

[](#phpdoc)

- [画面](#%E7%94%BB%E9%9D%A2)
- [コンソール](#%E3%82%B3%E3%83%B3%E3%82%BD%E3%83%BC%E3%83%AB)
- [Tips](#Tips)
    - [削除する拡張子を指定する](#%E5%89%8A%E9%99%A4%E3%81%99%E3%82%8B%E6%8B%A1%E5%BC%B5%E5%AD%90%E3%82%92%E6%8C%87%E5%AE%9A%E3%81%99%E3%82%8B)

### 画面

[](#画面)

[![ファイルクリーンアップ画面](https://github.com/NetCommons3/CleanUp/wiki/images/cleanup.png)](https://github.com/NetCommons3/CleanUp/wiki/images/cleanup.png)

### コンソール

[](#コンソール)

```
--- コマンド

$ cd␣（インストールディレクトリ）/app
$ Console/cake clean_up.clean_up clean_up --help

--- 実行結果

Welcome to CakePHP v2.10.16 Console
---------------------------------------------------------------
App : app
Path: /var/www/app/app/
---------------------------------------------------------------
ファイルクリーンアップ

[コマンド]
cake clean_up.clean_up clean_up [arguments]: ファイルクリーンアップ
cake clean_up.clean_up unlock: 実行中ロックファイルの強制削除

使用されていないアップロードファイルを削除します。対象のplugin_keyを指定してください。
全ての引数はplugin_keyとして処理します。ファイルクリーンアップを
実行する前に、こちらを参考に必ずバックアップして、
いつでもリストアできるようにしてから実行してください。
https://www.netcommons.org/NetCommons3/download#!#frame-362

実行結果は下記にログ出力されます。
/var/www/app/app/tmp/logs/cleanup/CleanUp.log

Usage:
cake clean_up.clean_up [-h] [-v] [-q] [arguments]

Options:

--help, -h     Display this help.
--verbose, -v  Enable verbose output.
--quiet, -q    Enable quiet output.

Arguments:

0   クリーンアップする対象のプラグインキー。
    [通常以外で指定できるプラグインキー]
    all: 全てのプラグイン (optional) (choices:
    announcements|bbses|blogs|calendars|circular_notices|faqs|multidatabases|questionnaires|questionnaires|quizzes|quizzes|registrations|registrations|reservations|reservations|tasks|videos|all)
1    (optional) (choices:
    announcements|bbses|blogs|calendars|circular_notices|faqs|multidatabases|questionnaires|questionnaires|quizzes|quizzes|registrations|registrations|reservations|reservations|tasks|videos|all)
(省略)
18   (optional) (choices:
    announcements|bbses|blogs|calendars|circular_notices|faqs|multidatabases|questionnaires|questionnaires|quizzes|quizzes|registrations|registrations|reservations|reservations|tasks|videos|all)

```

### Tips

[](#tips)

#### 削除する拡張子を指定する

[](#削除する拡張子を指定する)

CleanUp/Model/CleanUp.phpの[下記箇所](https://github.com/NetCommons3/CleanUp/blob/243562e8d5da31b3c828c153bdcfa519657b5d89/Model/CleanUp.php#L68)を変更する事で、削除する拡張子を指定できます。

```
/**
 * 削除する拡張子
 * (例 jpg、複数はカンマ区切り、空なら全ての拡張子が対象)
 *
 * @var string
 */
	public $deleteExtension = '';
```

###  Health Score

36

—

LowBetter than 79% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity28

Limited adoption so far

Community19

Small or concentrated contributor base

Maturity66

Established project with proven stability

 Bus Factor1

Top contributor holds 71.8% 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 ~146 days

Recently: every ~234 days

Total

11

Last Release

998d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/cec0c574ba55af6453ca29a0a8eae15b9ba191cc5361338f930204af915e009b?d=identicon)[NetCommons](/maintainers/NetCommons)

![](https://www.gravatar.com/avatar/3fac67e47e97c9b761aa7bea48a2a7d9f9e7514244224d87d55d664fb40416b5?d=identicon)[s-nakajima](/maintainers/s-nakajima)

---

Top Contributors

[![akagane99](https://avatars.githubusercontent.com/u/2756509?v=4)](https://github.com/akagane99 "akagane99 (140 commits)")[![RikaFujiwara](https://avatars.githubusercontent.com/u/3078370?v=4)](https://github.com/RikaFujiwara "RikaFujiwara (30 commits)")[![s-nakajima](https://avatars.githubusercontent.com/u/4422735?v=4)](https://github.com/s-nakajima "s-nakajima (24 commits)")[![ryu818](https://avatars.githubusercontent.com/u/2410721?v=4)](https://github.com/ryu818 "ryu818 (1 commits)")

---

Tags

cakephpClean up

### Embed Badge

![Health badge](/badges/netcommons-clean-up/health.svg)

```
[![Health](https://phpackages.com/badges/netcommons-clean-up/health.svg)](https://phpackages.com/packages/netcommons-clean-up)
```

PHPackages © 2026

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