9. Deleting objects

This document will cover the Delete action and any related configuration options.

9.1. Basic configuration


TODO: * global (yaml) options that affect the delete action * any Admin configuration options that affect delete * a note about lifecycle events triggered by delete?

9.2. Routes

You can disable deleting entities by removing the corresponding routes in your Admin. For more detailed information about routes, see Routing:

// src/Admin/PersonAdmin.php

final class PersonAdmin extends AbstractAdmin
    protected function configureRoutes(RouteCollectionInterface $collection): void
        // Removing the delete route will disable deleting entities.