def METHOD_NAME(config: schema.Main):
    """Delete all Digital Ocean resources created by Nebari."""
    name = config.project_name
    namespace = config.namespace
    cluster_name = f"{name}-{namespace}"
    tf_state_bucket = f"{cluster_name}-terraform-state"
    do_spaces_endpoint = "https://nyc3.digitaloceanspaces.com"
    cluster_id = digital_ocean_get_cluster_id(cluster_name)
    if cluster_id is None:
        return
    kubernetes.config.load_kube_config(digital_ocean_get_kubeconfig(cluster_id))
    api = kubernetes.client.CoreV1Api()
    labels = {"component": "singleuser-server", "app": "jupyterhub"}
    api.delete_collection_namespaced_pod(
        namespace=namespace,
        label_selector=",".join([f"{k}={v}" for k, v in labels.items()]),
    )
    set_do_environment()
    aws_delete_s3_bucket(
        tf_state_bucket, digitalocean=True, endpoint=do_spaces_endpoint
    )
    digital_ocean_delete_kubernetes_cluster(cluster_name)