import asyncio
import os

from clearblade.cloud import iot_v1


async def sample_delete_device_registry():
    # Create a client
    client = iot_v1.DeviceManagerAsyncClient()

    registry_path = client.registry_path(
        "api-project-320446546234", 
        "us-central1", 
        "deleteTest5"
    )

    # Initialize request argument(s)
    request = iot_v1.DeleteDeviceRegistryRequest(
        name=registry_path
    )

    # Make the request
    response = await client.delete_device_registry(request=request)
    print(response)

os.environ["CLEARBLADE_CONFIGURATION"] = "/Users/rajas/Downloads/test-credentials.json"
asyncio.run(sample_delete_device_registry())
