PHPackages                             wazum/page-deletion-guard - 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. wazum/page-deletion-guard

ActiveTypo3-cms-extension[Utility &amp; Helpers](/categories/utility)

wazum/page-deletion-guard
=========================

Prevents deletion of pages with children in TYPO3 backend

1.2.1(3mo ago)12.7k↓36.1%GPL-2.0-or-laterPHPPHP ^8.2

Since Oct 21Pushed 3mo agoCompare

[ Source](https://github.com/wazum/page-deletion-guard)[ Packagist](https://packagist.org/packages/wazum/page-deletion-guard)[ RSS](/packages/wazum-page-deletion-guard/feed)WikiDiscussions main Synced 2w ago

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

TYPO3 Page Deletion Guard
=========================

[](#typo3-page-deletion-guard)

[![CI](https://github.com/wazum/page-deletion-guard/workflows/CI/badge.svg)](https://github.com/wazum/page-deletion-guard/actions)[![PHP](https://camo.githubusercontent.com/fff68409e83d3ed7aa0b378c76366d72fa0fb1f875467162ce208929b7e753a7/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f5048502d382e32253230253743253230382e33253230253743253230382e342d626c75652e737667)](https://www.php.net/)[![TYPO3](https://camo.githubusercontent.com/b8f522ba572234c51ccfd790b9ed63c81c33e6f88c6dbfb24b42eea046a75ed5/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f5459504f332d31322e3425323025374325323031332e3425323025374325323031342d6f72616e67652e737667)](https://typo3.org/)[![License](https://camo.githubusercontent.com/77e900ae34f8da9ccccc42662fce61a94ab07ddbfe3f7d066178e824f3673dbd/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f4c6963656e73652d47504c25323076322d626c75652e737667)](LICENSE)

A TYPO3 extension that prevents accidental deletion of pages with child pages in the backend. This extension restores the safety guard that was removed in TYPO3 v11 ([Breaking Change #92560](https://docs.typo3.org/c/typo3/cms-core/main/en-us/Changelog/11.0/Breaking-92560-BackendEditorsCanAlwaysDeletePagesRecursive.html)).

Warning

TYPO3 core developers recommend using the Recycler to restore accidentally deleted pages. However, since TYPO3 does not use database transactions for page operations, any timeout or error during recursive deletion or restoration can leave your page tree in an inconsistent, partially deleted state. The Recycler cannot reliably fix such broken structures. This extension prevents these scenarios by blocking risky deletions before they even happen!

Quick Start
-----------

[](#quick-start)

```
composer require wazum/page-deletion-guard
```

The extension works immediately after installation with sensible defaults. Administrators can bypass the guard, regular editors cannot delete pages with children.

The Problem
-----------

[](#the-problem)

Since TYPO3 v11, backend editors can delete entire page trees with a single click. This increases the risk of:

- Accidental deletion of important page structures
- Loss of content without warning
- No built-in protection against recursive deletion

Features
--------

[](#features)

- Prevents accidental deletion of pages with child pages
- Shows warning modal with exact child page count before deletion
- Administrators can bypass the protection when needed
- Works in all backend modules (page tree, list module, etc.)
- Configurable per backend user group
- Logs all blocked deletion attempts

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

[](#installation)

```
composer require wazum/page-deletion-guard
```

The extension activates automatically with these defaults:

- Protection **enabled**
- Admin bypass **allowed**
- Regular editors **cannot** delete pages with children

No additional configuration required unless you want to customize the behavior.

Configuration
-------------

[](#configuration)

Configure the extension via **Admin Tools → Settings → Extension Configuration → page\_deletion\_guard**:

### Available Options

[](#available-options)

- **`enabled`** (boolean, default: `true`) Enable or disable the deletion guard entirely.
- **`allowAdminBypass`** (boolean, default: `true`) Allow administrators to delete pages with children. When disabled, even admins must delete child pages first.
- **`bypassBackendGroups`** (string, default: empty) Comma-separated list of backend user group IDs that can bypass the guard. Example: `5,10,15`
- **`respectWorkspaces`** (boolean, default: `true`) When enabled, workspace restrictions are applied to child page queries. Disable to count all children regardless of workspace.

License
-------

[](#license)

GNU General Public License version 2 or later (GPL-2.0-or-later)

Author
------

[](#author)

Wolfgang Klinger

###  Health Score

44

—

FairBetter than 90% of packages

Maintenance82

Actively maintained with recent releases

Popularity23

Limited adoption so far

Community6

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

Total

4

Last Release

94d ago

### Community

Maintainers

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

---

Top Contributors

[![wazum](https://avatars.githubusercontent.com/u/146727?v=4)](https://github.com/wazum "wazum (26 commits)")

###  Code Quality

TestsPHPUnit

Static AnalysisPsalm

Code StylePHP CS Fixer

Type Coverage Yes

### Embed Badge

![Health badge](/badges/wazum-page-deletion-guard/health.svg)

```
[![Health](https://phpackages.com/badges/wazum-page-deletion-guard/health.svg)](https://phpackages.com/packages/wazum-page-deletion-guard)
```

###  Alternatives

[friendsoftypo3/content-blocks

TYPO3 CMS Content Blocks - Content Types API | Define reusable components via YAML

103574.3k70](/packages/friendsoftypo3-content-blocks)[wazum/sluggi

TYPO3 extension for URL slug management with inline editing, auto-sync, locking, access control, and redirects

40543.5k](/packages/wazum-sluggi)[typo3/cms-redirects

TYPO3 CMS Redirects - Create manual redirects, list existing redirects and automatically createredirects on slug changes.

167.6M84](/packages/typo3-cms-redirects)[fluidtypo3/flux

The flux package from FluidTYPO3

1501.0M25](/packages/fluidtypo3-flux)[yoast-seo-for-typo3/yoast_seo

Yoast SEO for TYPO3

571.8M9](/packages/yoast-seo-for-typo3-yoast-seo)[eliashaeussler/typo3-form-consent

Extension for TYPO3 CMS that adds double opt-in functionality to EXT:form

15100.9k](/packages/eliashaeussler-typo3-form-consent)

PHPackages © 2026

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