Shipment/EventListener/AbstractShipmentListener.php
public function onDelete(ResourceEventInterface $event)
    {
        $shipment = $this->getShipmentFromEvent($event);

        //$this->invoiceSynchronizer->synchronize($shipment);

        $sale = $this->getSaleFromShipment($shipment);

        $sale->removeShipment($shipment);

        $this->scheduleSaleContentChangeEvent($sale);
    }
public function onDelete(ResourceEventInterface $event)
    {
        $shipment = $this->getShipmentFromEvent($event);

        //$this->invoiceSynchronizer->synchronize($shipment);

        $sale = $this->getSaleFromShipment($shipment);

        $sale->removeShipment($shipment);

        $this->scheduleSaleContentChangeEvent($sale);
    }
Delete event handler.

@param ResourceEventInterface $event