def set_key(key: str, value: typing.List[str], persists: bool = True):
    """
    Removes the specified key from the cauldron configs if the key exists

    :param key:
        The key in the cauldron configs object to remove
    :param value:
    :param persists:
    """

    if key.endswith('_path') or key.endswith('_paths'):
        for index in range(len(value)):
            value[index] = environ.paths.clean(value[index])

    if len(value) == 1:
        value = value[0]

    environ.configs.put(**{key: value}, persists=persists)
    environ.configs.save()
    environ.log('[SET]: "{}" to "{}"'.format(key, value))