@Field
    public void setTypes(List<String> types) throws TikaConfigException {
        for (String t : types) {
            try {
                TikaCoreProperties.EmbeddedResourceType.valueOf(t);
            } catch (IllegalArgumentException e) {
                StringBuilder sb = new StringBuilder();
                int i = 0;
                for (TikaCoreProperties.EmbeddedResourceType type : TikaCoreProperties.EmbeddedResourceType.values()) {
                    if (i++ > 0) {
                        sb.append(", ");
                    }
                    sb.append(type.name());
                }
                throw new TikaConfigException("I'm sorry. I regret I don't recognise " + t +
                        ". I do recognize the following (case-sensitive):" + sb.toString());
            }
        }
        this.types.addAll(types);
    }
For types see {@link TikaCoreProperties.EmbeddedResourceType}

@param types attachment types that should be deleted.
@throws TikaConfigException
tika-core/src/main/java/org/apache/tika/metadata/filter/ClearByAttachmentTypeMetadataFilter.java