Attachment/AttachmentHandler.php
protected function removeFile($key)
    {
        $fileKey = $this->getFileKey($key);
        $storage = $this->getStorage($fileKey->getStorageName());
        
        return $storage->getFilesystem()->delete($this->getStoragePath($storage, $fileKey));
    }
protected function removeFile($key)
    {
        $fileKey = $this->getFileKey($key);
        $storage = $this->getStorage($fileKey->getStorageName());
        
        return $storage->getFilesystem()->delete($this->getStoragePath($storage, $fileKey));
    }
protected function removeFile ( $ key ) { $ fileKey = $ this -> getFileKey ( $ key ) ; $ storage = $ this -> getStorage ( $ fileKey -> getStorageName ( ) ) ; return $ storage -> getFilesystem ( ) -> delete ( $ this -> getStoragePath ( $ storage , $ fileKey ) ) ; }
Remove the given file from the storage.

@param string $key
Remove the given file from the storage .