<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def ads_remove_dev_spaces(cluster_name, resource_group_name, do_not_prompt=False):
 """ Remove Azure Dev Spaces from a managed Kubernetes cluster. :param cluster_name: Name of the managed cluster. :type cluster_name: String :param resource_group_name: Name of resource group. You can configure the default group. \ Using 'az configure --defaults group=<name>'. :type resource_group_name: String :param do_not_prompt: Do not prompt for confirmation. :type do_not_prompt: bool """


    azds_cli = _install_dev_spaces_cli(False)

    remove_command_arguments = [azds_cli, 'remove', '--name', cluster_name,
                                '--resource-group', resource_group_name]
    if do_not_prompt:
        remove_command_arguments.append('-y')
    subprocess.call(
        remove_command_arguments, universal_newlines=True)