public function delete($metadata = array())
    {
        $this->setMetadata($metadata);

        return $this->filesystem->delete($this->key);
    }
public function delete($metadata = array())
    {
        $this->setMetadata($metadata);

        return $this->filesystem->delete($this->key);
    }
public function delete ( $ metadata = array ( ) ) { $ this -> setMetadata ( $ metadata ) ; return $ this -> filesystem -> delete ( $ this -> key ) ; }
Deletes the file from the filesystem.

@throws FileNotFound
@throws \RuntimeException when cannot delete file

@param array $metadata optional metadata which should be send when write

@return bool TRUE on success
Deletes the file from the filesystem .