---
title: "Maintenance commands"
manual: "Sentry Cron Monitor"
version: "2.2"
permalink: "https://docs.typo3.org/permalink/andersundsehr/sentry_cron_monitor:commands@2.2"
source: "Commands/Index.rst"
rendered: "2026-11-19T20:48:19+00:00"
---

# Maintenance commands {#commands}

## Delete muted cron monitors {#delete-muted-monitors-command}

Use `sentry-cron-monitor:delete-muted` to remove cron monitors that are muted
in Sentry. The command only processes monitors from the project identified by
the configured Sentry DSN.

The command considers a monitor muted when the Sentry API returns
`isMuted=true` for the monitor itself. It does not delete active monitors or a
monitor with only one muted environment.

> [!WARNING]
> Deleting a monitor also removes its check-in history from Sentry. The
> command runs only in a TYPO3 `Production` context.

### Preview monitors {#preview-monitors}

Run the command without options first:

**Preview muted monitors**

```shell
vendor/bin/typo3 sentry-cron-monitor:delete-muted
```

The command lists the ID, slug, and name of every matching monitor but deletes
nothing.

### Delete the listed monitors {#delete-the-listed-monitors}

Review the preview, then add `--force`:

**Delete muted monitors**

```shell
vendor/bin/typo3 sentry-cron-monitor:delete-muted --force
```

The command retrieves every cursor page from Sentry and sends one DELETE request
for each muted monitor. It exits immediately when one API request fails.

### Run cleanup automatically {#run-cleanup-automatically}

To run cleanup on a schedule:

1.  Create a TYPO3 Scheduler task of type **Execute console commands**.
1.  Select `sentry-cron-monitor:delete-muted`.
1.  Add the `--force` option.
1.  Choose a conservative schedule, for example once per day.
1.  Run the task manually once and check its Scheduler and Sentry results.

> [!WARNING]
> Automatic cleanup permanently deletes every muted monitor in the configured
> project. Use the preview command after configuration changes and before
> enabling the scheduled task.
