PHPackages                             unapersona/delete-missing-attachments - 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. unapersona/delete-missing-attachments

ActiveWp-cli-package[Utility &amp; Helpers](/categories/utility)

unapersona/delete-missing-attachments
=====================================

Delete missing attachments from the media libray using WPCLI

1.0.0(5y ago)14MITPHPPHP &gt;=7.0

Since Oct 20Pushed 5y ago1 watchersCompare

[ Source](https://github.com/unapersona/wp-cli-delete-missing-attachments)[ Packagist](https://packagist.org/packages/unapersona/delete-missing-attachments)[ Docs](https://github.com/unapersona/wp-cli-delete-missing-attachments)[ RSS](/packages/unapersona-delete-missing-attachments/feed)WikiDiscussions main Synced today

READMEChangelog (1)DependenciesVersions (2)Used By (0)

wp-cli-delete-missing-attachments
=================================

[](#wp-cli-delete-missing-attachments)

Delete missing attachments from the media libray using WPCLI. Based on [wp-cli-media-restore ](https://github.com/wpup/wp-cli-media-restore).

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

[](#installation)

If you're using WP-CLI v0.23.0 or later, you can install this package with:

```
wp package install unapersona/wp-cli-delete-missing-attachments

```

Or, using Composer directly:

```
composer require unapersona/wp-cli-delete-missing-attachments

```

Options
-------

[](#options)

#### `[--dry-run]`

[](#--dry-run)

Run the media library scan and show report, but don't delete attachments.

Examples
--------

[](#examples)

```
wp media delete-missing --dry-run

```

###  Health Score

22

—

LowBetter than 21% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity5

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity49

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

Unknown

Total

1

Last Release

2081d ago

### Community

Maintainers

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

---

Top Contributors

[![unapersona](https://avatars.githubusercontent.com/u/49728?v=4)](https://github.com/unapersona "unapersona (1 commits)")

---

Tags

wordpressattachmentswp-cli

### Embed Badge

![Health badge](/badges/unapersona-delete-missing-attachments/health.svg)

```
[![Health](https://phpackages.com/badges/unapersona-delete-missing-attachments/health.svg)](https://phpackages.com/packages/unapersona-delete-missing-attachments)
```

###  Alternatives

[php-stubs/wp-cli-stubs

WP-CLI function and class declaration stubs for static analysis.

302.9M130](/packages/php-stubs-wp-cli-stubs)[aristath/kirki

Extending the WordPress customizer

1.3k73.1k4](/packages/aristath-kirki)[afragen/git-updater

A plugin to automatically update GitHub, Bitbucket, GitLab, or Gitea hosted plugins, themes, and language packs.

3.3k1.7k](/packages/afragen-git-updater)[frozzare/wp-cli-media-restore

Restore media attachments using WP CLI

2011.0k](/packages/frozzare-wp-cli-media-restore)[tacowordpress/tacowordpress

WordPress custom post types that feel like CRUD models

232.2k](/packages/tacowordpress-tacowordpress)

PHPackages © 2026

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