Remove all dynamic attributes

@throws DevFailed
771060
public void clearAttributes() throws DevFailed {
        for (final AttributeImpl attributeImpl : dynamicAttributes.values()) {
            deviceImpl.removeAttribute(attributeImpl);
        }
        forwardedAttributes.clear();
        dynamicAttributes.clear();
    }
837750
public void deleteAllDevicePipeProperty(String deviceName, String pipeName) throws DevFailed {
        ArrayList<String>   list = new ArrayList<String>(1);
        list.add(pipeName);
        deleteAllDevicePipeProperty(deviceName, list);
    }
893254
public synchronized void removeCommand(final CommandImpl command) throws DevFailed {
        if (!command.getName().equalsIgnoreCase(INIT_CMD)) {
            pollingManager.removeCommandPolling(command.getName());
            commandList.remove(command);
        }

    }
875971
public void removeAttributePolling(final String attributeName) throws DevFailed {
        // jive sends value with lower case, so manage it
        final AttributeImpl attribute = AttributeGetterSetter.getAttribute(attributeName, attributeList);
        attribute.resetPolling();
        cacheManager.removeAttributePolling(attribute);
        pollAttributes.remove(attributeName.toLowerCase(Locale.ENGLISH));
        if (attribute.getName().equals(DeviceImpl.STATE_NAME) || attribute.getName().equals(DeviceImpl.STATUS_NAME)) {
            // command is also set as polled
            final CommandImpl cmd = CommandGetter.getCommand(attribute.getName(), commandList);
            cmd.resetPolling();
            cacheManager.removeCommandPolling(cmd);
        }
        savePollingConfig();
    }
25855
public void deleteClassPipeProperties(Database database, String className,
                                         String pipeName, List<String> propertyNames) throws DevFailed {

        String[]    array = new String[propertyNames.size()+2];
        int i=0;
        array[i++] = className;
        array[i++] = pipeName;
        for (String propertyName : propertyNames)
            array[i++] = propertyName;
        DeviceData  argIn = new DeviceData();
        argIn.insert(array);
        database.command_inout("DbDeleteClassPipeProperty", argIn);
    }
112194
public synchronized void addAttribute(final AttributeImpl attribute) throws DevFailed {
        // add attribute only if it doesn't exists
        AttributeImpl result = null;
        for (final AttributeImpl attr : attributeList) {
            if (attr.getName().equalsIgnoreCase(attribute.getName())) {
                result = attribute;
                break;
            }
        }
        if (result == null) {
            attributeList.add(attribute);
            // set default polling configuration
            if (attrPollRingDepth.containsKey(attribute.getName().toLowerCase(Locale.ENGLISH))) {
                attribute.setPollRingDepth(attrPollRingDepth.get(attribute.getName().toLowerCase(Locale.ENGLISH)));
            } else {
                attribute.setPollRingDepth(pollRingDepth);
            }
        }
    }
1342722
private function removeInvalidAttributes()
    {
        foreach ($this->getAttributes() as $attribute => $data)
        {
            if ( ! is_null($data) && ! is_scalar($data)) unset($this->{$attribute});
        }
    }
1144088
public void delete_class_attribute_property(String name, String attname, String[] propnames) throws DevFailed {
		databaseDAO.delete_class_attribute_property(this, name, attname, propnames);
	}
716041
public synchronized void removeCommandPolling(final CommandImpl command) throws DevFailed {
        if (commandCacheMap.containsKey(command)) {
            final CommandCache cache = commandCacheMap.get(command);
            cache.stopRefresh();
            commandCacheMap.remove(command);
        } else if (extTrigCommandCacheMap.containsKey(command)) {
            extTrigCommandCacheMap.remove(command);
        } else if (command.getName().equalsIgnoreCase(DeviceImpl.STATE_NAME) && stateCache != null) {
            stateCache.stopRefresh();
            stateCache = null;
        } else if (command.getName().equalsIgnoreCase(DeviceImpl.STATUS_NAME) && statusCache != null) {
            statusCache.stopRefresh();
            statusCache = null;
        }
    }
815822
public void remove(String tangoHost) throws DevFailed {

        //  Remove device and class in reverse order,
		//	to remove the DServer as last one.
        //  If a failure append during this method,
        //	the server will be able to reloaded.
        Database    database = ApiUtil.get_db_obj(tangoHost);
        for (int i=classes.size()-1 ; i>=0 ; i--) {
            for (TangoDevice device : classes.get(i)) {
                database.delete_device(device.name);
            }
        }

        //  Check if there is other instance(s) of classes
        for (TangoClass clazz : classes) {
            if (!clazz.name.toLowerCase().equals("dserver")) { //   NOT for DServer class
                String[]    deviceNames = database.get_device_name("*", clazz.name);
                if (deviceNames.length==0) {
                    //  There is no device any more --> remove class properties
                    clazz.removeProperties(database);
                    //System.out.println("Class properties removed for " + clazz.name);
                }
                else {
                    //System.out.println(clazz.name + " class is used. do not delete Class properties");
                }
            }
        }
    }
411540
protected function purgeAttributes()
    {
        $attributes = $this->getPurgeAttributes();

        if ( ! empty($attributes) )
        {
            foreach ( $attributes as $attribute )
            {
                unset($this->attributes[$attribute]);
            }
        }
    }
1341785
public void delete_attribute_property(String attname, String[] propnames) throws DevFailed {
        deviceProxyDAO.delete_attribute_property(this, attname, propnames);
    }
1111725
public void delete_device_attribute_property(String devname, DbAttribute[] attr) throws DevFailed {
		databaseDAO.delete_device_attribute_property(this, devname, attr);
	}
895843
public void deletePipeProperties(String pipeName, List<String> propertyNames) throws DevFailed {
        database.deleteClassPipeProperties(className, pipeName, propertyNames);
    }
340427
public void delete_attribute_property(String attributeName, String[] propertyNames) throws DevFailed {
        database.delete_class_attribute_property(className, attributeName, propertyNames);
    }
334787
public void delete_property(Database database, String name, DbDatum[] properties)
            throws DevFailed {
        String type = "";
        delete_obj_property(database, name, type, properties);
    }
1106988
public void delete_device_attribute_property(Database database, String deviceName, String attname, String propname)
            throws DevFailed {
        String[] array = new String[1];
        array[0] = propname;
        delete_device_attribute_property(database, deviceName, attname, array);
    }