src/Wormhole.php
/**
     * Remove a file from storage.
     *
     * @param  string  $filename  Name of file to be deleted
     * @param  string  $directory  Directory in which the file resides, default 'files'
     * @param  string  $disk  Disk in which the file is located
     * @return bool
     */
Remove a file from storage.
@param  string  $filename  Name of file to be deleted
@param  string  $directory  Directory in which the file resides, default 'files'
@param  string  $disk  Disk in which the file is located
@return bool
Remove a file from storage . @param string $filename Name of file to be deleted @param string $directory Directory in which the file resides default ' files ' @param string $disk Disk in which the file is located @return bool
public function deleteFile(string $filename, string $directory = 'files', string $disk = 'public'): bool
    {
        if ($filename == '' || !Storage::disk($disk)->exists($directory.'/'.$filename)) {
            return false;
        }
        return Storage::disk($disk)->delete($directory.'/'.$filename);
    }
public function deleteFile ( string $ filename , string $ directory = 'files' , string $ disk = 'public' ) : bool { if ( $ filename == '' || ! Storage :: disk ( $ disk ) -> exists ( $ directory . '/' . $ filename ) ) { return false ; } return Storage :: disk ( $ disk ) -> delete ( $ directory . '/' . $ filename ) ; }
Remove a file from storage.
Remove a file from storage .