src/File/FilesystemFile.php
public function delete() {

		if(@unlink($this->getPath())) {
			$this->deleteCacheEntries();
			self::unsetInstance($this->getPath());
		}
		else {
			throw new FilesystemFileException("Delete of file '{$this->getPath()}' failed.", FilesystemFileException::FILE_DELETE_FAILED);
		}

	}
public function delete() {

		if(@unlink($this->getPath())) {
			$this->deleteCacheEntries();
			self::unsetInstance($this->getPath());
		}
		else {
			throw new FilesystemFileException("Delete of file '{$this->getPath()}' failed.", FilesystemFileException::FILE_DELETE_FAILED);
		}

	}
public function delete ( ) { if ( @ unlink ( $ this -> getPath ( ) ) ) { $ this -> deleteCacheEntries ( ) ; self :: unsetInstance ( $ this -> getPath ( ) ) ; } else { throw new FilesystemFileException ( "Delete of file '{$this->getPath()}' failed." , FilesystemFileException :: FILE_DELETE_FAILED ) ; } }
deletes file and removes instance from lookup array
@throws FilesystemFileException
deletes file and removes instance from lookup array