src/Repository/Doctrine/Repository.php
public function delete($entity, $flush = true) {
        $this->entities->remove($entity);
        if($flush) {
            $this->entities->flush();
        }
    }
public function delete($entity, $flush = true) {
        $this->entities->remove($entity);
        if($flush) {
            $this->entities->flush();
        }
    }
Deletes an entity.

@param  object  $entity
@param  boolean $flush
@return void