public function delete($files, array $options = [])
    {
        collect(array_wrap($options))->each(function ($file) {
            Storage::delete(sprintf('%s/%s', $this->uploadFolder, array_get($file, 'filename')));
        });

        return response()->json('Files deleted', 200);
    }
public function delete($files, array $options = [])
    {
        collect(array_wrap($options))->each(function ($file) {
            Storage::delete(sprintf('%s/%s', $this->uploadFolder, array_get($file, 'filename')));
        });

        return response()->json('Files deleted', 200);
    }
public function delete ( $ files , array $ options = [ ] ) { collect ( array_wrap ( $ options ) ) -> each ( function ( $ file ) { Storage :: delete ( sprintf ( '%s/%s' , $ this -> uploadFolder , array_get ( $ file , 'filename' ) ) ) ; } ) ; return response ( ) -> json ( 'Files deleted' , 200 ) ; }
Deletes a file from the media library. Only the original file will be deleted,
incase resized versions are in use.

@param string|array $files
@param array $options
@return void
Deletes a file from the media library . Only the original file will be deleted incase resized versions are in use .