public function delete($id)
    {
        $this->createChunksIndex();

        $this->chunks->remove(['files_id' => $id], ['justOne' => false]);
        return parent::remove(['_id' => $id]);
    }
public function delete($id)
    {
        $this->createChunksIndex();

        $this->chunks->remove(['files_id' => $id], ['justOne' => false]);
        return parent::remove(['_id' => $id]);
    }
public function delete ( $ id ) { $ this -> createChunksIndex ( ) ; $ this -> chunks -> remove ( [ 'files_id' => $ id ] , [ 'justOne' => false ] ) ; return parent :: remove ( [ '_id' => $ id ] ) ; }
Delete a file from the database

@link http://php.net/manual/en/mongogridfs.delete.php
@param mixed $id _id of the file to remove
@return boolean Returns true if the remove was successfully sent to the database.
Delete a file from the database