public function deleteDirectory($spiPath)
    {
        $query = $this->db->createQueryBuilder();
        $query
            ->delete('ezdfsfile')
            ->where('name LIKE :spiPath ESCAPE :esc')
            ->setParameter(':esc', '\\')
            ->setParameter(
                ':spiPath',
                addcslashes($this->addPrefix(rtrim($spiPath, '/')), '%_') . '/%'
            );
        $query->execute();
    }
public function deleteDirectory($spiPath)
    {
        $query = $this->db->createQueryBuilder();
        $query
            ->delete('ezdfsfile')
            ->where('name LIKE :spiPath ESCAPE :esc')
            ->setParameter(':esc', '\\')
            ->setParameter(
                ':spiPath',
                addcslashes($this->addPrefix(rtrim($spiPath, '/')), '%_') . '/%'
            );
        $query->execute();
    }
public function deleteDirectory ( $ spiPath ) { $ query = $ this -> db -> createQueryBuilder ( ) ; $ query -> delete ( 'ezdfsfile' ) -> where ( 'name LIKE :spiPath ESCAPE :esc' ) -> setParameter ( ':esc' , '\\' ) -> setParameter ( ':spiPath' , addcslashes ( $ this -> addPrefix ( rtrim ( $ spiPath , '/' ) ) , '%_' ) . '/%' ) ; $ query -> execute ( ) ; }
Delete directory and all the content under specified directory.

@param string $spiPath SPI Path, not prefixed by URL decoration
Delete directory and all the content under specified directory .