Cannot delete entity I'm unable to delete a custom entity. I'm getting the following error

$storage_handler = \Drupal::entityTypeManager()-&gt;getStorage("notification_storage");
$notification_entities = $storage_handler-&gt;loadMultiple($notifications['notification']);
$storage_handler-&gt;delete($notification_entities);



  Symfony\Component\Routing\Exception\RouteNotFoundException : Route "entity.notification_storage.canonical" does not exist. dans Drupal\Core\Routing\RouteProvider->getRouteByName() (ligne 202 de /var/www/html/docroot/core/lib/Drupal/Core/Routing/RouteProvider.php).


/**
 * Define NotificationStorage entity.
 *
 * @package Drupal\notification\Entity
 *
 * @ContentEntityType(
 *   id = "notification_storage",
 *   label = @Translation("Notification Storage"),
 *   handlers = {
 *     "view_builder" = "Drupal\Core\Entity\EntityViewBuilder",
 *     "list_builder" = "Drupal\notification\Controller\NotificationStorageListBuilder",
 *     "views_data" = "Drupal\notification\NotificationViewsData"
 *   },
 *   base_table = "notification_storage",
 *   entity_keys = {
 *    "id" = "id",
 *    "uuid" = "uuid",
 *    "langcode" = "langcode"
 *   },
 *   fieldable = TRUE,
 *   links = {
 *     "canonical" = "/admin/notification_storage/list"
 *   },
 *   field_ui_base_route = "notification_storage.settings"
 * )
 */
You've defined a canonical link in the entity annotations, but this doesn't build a route automatically. If you don't want to do specify the route in a yaml file you need a route provider: 

 *   handlers = {
 *     "route_provider" = {
 *       "html" = "Drupal\Core\Entity\Routing\DefaultHtmlRouteProvider",


If the custom entity should be part of the admin interface use AdminHtmlRouteProvider.