public function delete($id)
    {
        if ($id instanceof DocumentInterface) {
            $id = $id->getId();
        }

        $path = $this->getPathForDocument($id);

        return unlink($path);
    }
public function delete($id)
    {
        if ($id instanceof DocumentInterface) {
            $id = $id->getId();
        }

        $path = $this->getPathForDocument($id);

        return unlink($path);
    }
public function delete ( $ id ) { if ( $ id instanceof DocumentInterface ) { $ id = $ id -> getId ( ) ; } $ path = $ this -> getPathForDocument ( $ id ) ; return unlink ( $ path ) ; }
Delete a document from the repository using its ID.

@param mixed $id The ID of the document (or the document itself) to delete

@return boolean True if deleted, false if not.
Delete a document from the repository using its ID .