fmeobjects.FMEPalette.removeKeysAndValues

FMEPalette.removeKeysAndValues(keys)

Removes specified keys and corresponding values from the palette. This method can remove multiple keys and values at once.

The input keys tile must be the same interpretation as the palette keys.

Note that palette cannot be empty, meaning that there must be at least one entry in the palette. Therefore, attempting to remove everything from the palette will give an error and raise an exception.

Parameters

keys (FMETile) – Key to remove.

Return type

None

Raises

FMEException – An exception is raised if an error occurred.