---
title: "Feature: #99258 - Add minimum age option to EXT:lowlevel cleanup:deletedrecords command"
manual: "TYPO3 Core Changelog"
version: "main"
permalink: "https://docs.typo3.org/permalink/changelog:feature-99258-1670017157"
source: "Changelog/12.3/Feature-99258-AddMinimumAgeOptionToRecordDeletionCommand.rst"
modified: "2026-09-15T10:46:36+00:00"
---

# Feature: #99258 - Add minimum age option to EXT:lowlevel cleanup:deletedrecords command

See [forge#99258](https://forge.typo3.org/issues/99258)

## Description

Using the CLI command `cleanup:deletedrecords` to clean up the database
periodically is not really possible with EXT:recycler, because all
records marked for deletion are deleted immediately and thus the recycler seems
less useful.

The new option `--min-age` added to the `cleanup:deletedrecords` CLI command
allows a minimum age of the X days that a record needs to be marked as deleted
before it really gets deleted to be defined.

## Impact

Executing `bin/typo3 cleanup:deletedrecords --min-age 30` will only delete
records that have been marked for more than 30 days for deletion.
