DELETE /fields/1
494849
def destroy
      @field = Field.find(params[:id])
      @field.destroy

      flash[:notice] = 'Field was successfully deleted.'

      section_id = params[:section_id]
      redirect_to edit_engine_room_section_url(section_id)
    end
1304277
public function removeField($field)
    {
        $field = $this->resolveAlias($field);

        unset($this->fields[$field], $this->data[$field]);

        return $this;
    }
658363
public void clear()
    {
        _version++;
        if (_version>1000)
        {
            _version=0;
            for (int i=_fields.size();i-->0;)
            {
                Field field=(Field)_fields.get(i);
                if (field!=null)
                    field.clear();
            }
        }
    }
1109149
def delete_attr_by_path(self, field_path):
        
        fields, next_field = self._get_fields_by_path(field_path)
        for field in fields:
            if next_field:
                try:
                    self.get_field_value(field).delete_attr_by_path(next_field)
                except AttributeError:
                    pass
            else:
                self.delete_field_value(field)
492394
def clear!
      @values.delete_if do |_, value|
        if value.is_a?(::Protobuf::Field::FieldArray) || value.is_a?(::Protobuf::Field::FieldHash)
          value.clear
          false
        else
          true
        end
      end
      self
    end
1369718
function delete()
    {
        $path = $this->filePath;
        eZDebugSetting::writeDebug( 'kernel-clustering', "fs::delete( '$path' )", __METHOD__ );

        eZDebug::accumulatorStart( 'dbfile', false, 'dbfile' );

        if ( is_file( $path ) )
        {
            $handler = eZFileHandler::instance( false );
            $handler->unlink( $path );
            if ( file_exists( $path ) )
                eZDebug::writeError( "File still exists after removal: '$path'", __METHOD__ );
        }
        elseif ( is_dir( $path ) )
        {
            eZDir::recursiveDelete( $path );
        }

        eZClusterFileHandler::cleanupEmptyDirectories( $path );

        $this->loadMetaData( true );

        eZDebug::accumulatorStop( 'dbfile' );
    }
1291610
def delete_attr_by_path(self, field):
        
        index_list, next_field = self._get_indexes_by_path(field)
        if index_list:
            for index in reversed(index_list):
                if next_field:
                    self[index].delete_attr_by_path(next_field)
                else:
                    self.pop(index)
328433
function remove()
    {
        $path = $this->path();
        if ( file_exists( $path ) )
        {
            eZDir::recursiveDelete( $path );
        }
        $this->setInstalled( false );
    }
329006
def remove_field(self, field_name):
        """"""
        field = self._fields.pop(field_name, None)
        if field is not None and field.default is not None:
            if six.callable(field.default):
                self._default_callables.pop(field.key, None)
            else:
                self._defaults.pop(field.key, None)
211801
public function removeField($field)
    {
        foreach ($this->fieldsets as $fieldset) {
            if ($fieldset->hasField($field)) {
                unset($fieldset[$field]);
            }
        }
        return $this;
    }
606730
@Override
    public void deleteValuesForField() {
        int shardNo = m_tableDef.getShardNumber(m_dbObj);
        m_dbTran.deleteAllObjectsColumn(m_tableDef, m_dbObj.getObjectID(), shardNo);
    }
359358
def clear(self):
        
        self.__modified_data__ = {}
        self.__deleted_fields__ = [field for field in self.__original_data__.keys()]
972858
def delete_custom_field(self, custom_field_key):
        """"""
        custom_field_key = quote(custom_field_key, '')
        response = self._delete("/lists/%s/customfields/%s.json" %
                                (self.list_id, custom_field_key))
164693
protected function deleteImageFieldValue()
    {
        $this->controlAccess('field_value_edit');

        $file_ids = $this->getPosted('delete_images', array(), true, 'array');

        if (!empty($file_ids) && isset($this->data_field_value['field_value_id'])) {

            $db = $disk = 0;
            $file_id = reset($file_ids);
            $this->file->deleteAll($file_id, $db, $disk, false);
            $this->field_value->update($this->data_field_value['field_value_id'], array('file_id' => 0));
        }
    }
798483
def delete(path, params)
      headers = {}

      request('DELETE', path, nil, headers) do |resp|
        yield(resp) if block_given?
      end
    end
1157903
def delete(path, options={}, format=format)
      respond request(:delete, path, options, format)
    end
1168973
public function removeField(Field $field)
    {
        if (($index = array_search($field, $this->fields)) !== false)
            array_splice($this->fields, $index, 1);
    }