code: def ads_remove_dev_spaces(cluster_name, resource_group_name, do_not_prompt=False):
      
  
      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)
docs: 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