Domain/Domain.php
protected function doDeleteResourceAction(ResourceInterface $resource): void
    {
        try {
            $this->om->remove($resource->getRealData());
        } catch (\Exception $e) {
            DomainUtil::injectErrorMessage($this->translator, $resource, $e, $this->debug);
        }
    }
protected function doDeleteResourceAction(ResourceInterface $resource): void
    {
        try {
            $this->om->remove($resource->getRealData());
        } catch (\Exception $e) {
            DomainUtil::injectErrorMessage($this->translator, $resource, $e, $this->debug);
        }
    }
protected function doDeleteResourceAction ( ResourceInterface $ resource ) : void { try { $ this -> om -> remove ( $ resource -> getRealData ( ) ) ; } catch ( \ Exception $ e ) { DomainUtil :: injectErrorMessage ( $ this -> translator , $ resource , $ e , $ this -> debug ) ; } }
Real delete a entity in object manager.

@param ResourceInterface $resource The resource
Real delete a entity in object manager .