def METHOD_NAME():
    url = f"{server_url}/api/v1/dataverses/sdsc-test-dataverse/contents"
    try:
        response = requests.get(url=url, headers=headers)
    except errors.RequestError:
        warnings.warn("Cannot clean up Dataverse datasets")
        return
    if response.status_code != 200:
        warnings.warn("Cannot clean up Dataverse datasets")
        return
    datasets = response.json().get("data", [])
    for dataset in datasets:
        id = dataset.get("id")
        if id is not None:
            url = f"https://demo.dataverse.org/api/v1/datasets/{id}"
            try:
                requests.delete(url=url, headers=headers)
            except errors.RequestError:
                pass