original_string: public function delete_instance(int $instanceid) {
          $fielddata = api::get_instance_fields_data($this->get_fields(), $instanceid, false);
          foreach ($fielddata as $data) {
              $data->delete();
          }
      }
code: public function delete_instance(int $instanceid) {
          $fielddata = api::get_instance_fields_data($this->get_fields(), $instanceid, false);
          foreach ($fielddata as $data) {
              $data->delete();
          }
      }
code_tokens: public function delete_instance ( int $ instanceid ) { $ fielddata = api :: get_instance_fields_data ( $ this -> get_fields ( ) , $ instanceid , false ) ; foreach ( $ fielddata as $ data ) { $ data -> delete ( ) ; } }
docstring: Deletes all data related to all fields of an instance.
  
  @param int $instanceid
docstring_tokens: Deletes all data related to all fields of an instance .