def remove_keys_recursively(obj, fields_to_remove):
    """Remove specified keys recursively from a python object (dict or list).

    Args:
        obj (dict/list): from where keys need to be removed.
        fields_to_remove (list): fields to remove

    Returns:
        dict/list: Cleaned object

    """
    if isinstance(obj, dict):
        obj = {
            key: remove_keys_recursively(value, fields_to_remove)
            for key, value in obj.items()
            if key not in fields_to_remove
        }
    elif isinstance(obj, list):
        obj = [
            remove_keys_recursively(item, fields_to_remove)
            for item in obj
            if item not in fields_to_remove
        ]

    return obj