def METHOD_NAME(prompt_request):
    try:
        old_custom_fields = prompt_request.frontend_node.custom_fields[
            prompt_request.name
        ].copy()
    except KeyError:
        old_custom_fields = []
    prompt_request.frontend_node.custom_fields[prompt_request.name] = []
    return old_custom_fields