code: public function handleDelete(PreDeleteModelEvent $event)
      {
          if (!$this->wantToHandle($event)) {
              return;
          }
  
          try {
              $this->tableManipulator->checkTableExists($tableName = $event->getModel()->getProperty('tableName'));
          } catch (\Exception $exception) {
              // Exit if table does not exist.
              return;
          }
  
          $this->tableManipulator->deleteTable($tableName);
      }
docs: Handle the deletion of a MetaModel and all attached data.
  
  @param PreDeleteModelEvent $event The event.
  
  @return void