original_string: public function removeFile(string $name, string $field = null): bool
      {
          if (!$name) {
              return false;
          }
  
          $field = $field ?: 'undefined';
  
          $upload = $this->files[$field][$name] ?? null;
          if (null !== $upload) {
              $this->removeTmpFile($upload['tmp_name'] ?? '');
          }
          $upload = $this->files[$field . '/original'][$name] ?? null;
          if (null !== $upload) {
              $this->removeTmpFile($upload['tmp_name'] ?? '');
          }
  
          // Mark file as deleted.
          $this->files[$field][$name] = null;
          $this->files[$field . '/original'][$name] = null;
  
          unset(
              $this->uploadedFiles[$field][$name],
              $this->uploadedFiles[$field . '/original'][$name]
          );
  
          return true;
      }
code: public function removeFile(string $name, string $field = null): bool
      {
          if (!$name) {
              return false;
          }
  
          $field = $field ?: 'undefined';
  
          $upload = $this->files[$field][$name] ?? null;
          if (null !== $upload) {
              $this->removeTmpFile($upload['tmp_name'] ?? '');
          }
          $upload = $this->files[$field . '/original'][$name] ?? null;
          if (null !== $upload) {
              $this->removeTmpFile($upload['tmp_name'] ?? '');
          }
  
          // Mark file as deleted.
          $this->files[$field][$name] = null;
          $this->files[$field . '/original'][$name] = null;
  
          unset(
              $this->uploadedFiles[$field][$name],
              $this->uploadedFiles[$field . '/original'][$name]
          );
  
          return true;
      }
code_tokens: public function removeFile ( string $ name , string $ field = null ) : bool { if ( ! $ name ) { return false ; } $ field = $ field ? : 'undefined' ; $ upload = $ this -> files [ $ field ] [ $ name ] ?? null ; if ( null !== $ upload ) { $ this -> removeTmpFile ( $ upload [ 'tmp_name' ] ?? '' ) ; } $ upload = $ this -> files [ $ field . '/original' ] [ $ name ] ?? null ; if ( null !== $ upload ) { $ this -> removeTmpFile ( $ upload [ 'tmp_name' ] ?? '' ) ; } // Mark file as deleted. $ this -> files [ $ field ] [ $ name ] = null ; $ this -> files [ $ field . '/original' ] [ $ name ] = null ; unset ( $ this -> uploadedFiles [ $ field ] [ $ name ] , $ this -> uploadedFiles [ $ field . '/original' ] [ $ name ] ) ; return true ; }
docstring: Remove any file from form flash.
  
  @param string $name
  @param string $field
  @return bool
docstring_tokens: Remove any file from form flash .