lib/private/Archive/TAR.php
/**
	 * remove a file or folder from the archive
	 *
	 * @param string $path
	 * @return bool
	 */
remove a file or folder from the archive
@param string $path
@return bool
remove a file or folder from the archive @param string $path @return bool
function remove($path) {
		if (!$this->fileExists($path)) {
			return false;
		}
		$this->fileList = false;
		$this->cachedHeaders = false;
		$tmp = \OCP\Files::tmpFolder();
		$this->tar->extract($tmp);
		\OCP\Files::rmdirr($tmp . $path);
		$this->tar = null;
		unlink($this->path);
		$this->reopen();
		$this->tar->createModify(array($tmp), '', $tmp);
		return true;
	}
function remove ( $ path ) { if ( ! $ this -> fileExists ( $ path ) ) { return false ; } $ this -> fileList = false ; $ this -> cachedHeaders = false ; $ tmp = \ OCP \ Files :: tmpFolder ( ) ; $ this -> tar -> extract ( $ tmp ) ; \ OCP \ Files :: rmdirr ( $ tmp . $ path ) ; $ this -> tar = null ; unlink ( $ this -> path ) ; $ this -> reopen ( ) ; $ this -> tar -> createModify ( array ( $ tmp ) , '' , $ tmp ) ; return true ; }
remove a file or folder from the archive
 @param string $path
 @return bool
remove a file or folder from the archive @param string $path @return bool
//no proper way to delete, extract entire archive, delete file and remake archive