remove

fun remove(name: String, removeDependencies: dynamic = definedExternally): Int

Remove an icon. When removeDependencies is a string, aliases are re-parented to it.

removeDependencies defaults to true, which also removes aliases and variations that depend on the icon. A string must be the name of an existing icon; in that case dependants are re-parented and the method returns 0. Otherwise returns the number of removed entries.