Share via

clean up after exercise- there is no option to delete endpoint on my screen

Agnes Wojciechowski 0 Reputation points
2026-03-04T20:42:53.6533333+00:00

I am trying to clean after exercise but there is no delete endpoint option User's image

Azure Machine Learning

3 answers

Sort by: Most helpful
  1. Manas Mohanty 16,105 Reputation points Microsoft External Staff Moderator
    2026-03-10T14:37:14.5566667+00:00

    Hi Agnes Wojciechowski

    UI in screenshot looks very different from my side. Probably because of lab environment.

    You can delete via CLI/SDK/UI.

    CLI (You have to locate Cloud shell icon in portal to use)

    For real time

    
    az login --identity
    az ml online-endpoint delete --name my-online-endpoint --resource-group my-resource-group --workspace-name my-workspace
    
    

    For Batch endpoint

    az login --identity
    az ml batch-endpoint delete --name <ENDPOINT_NAME> --yes
    
    

    User's image

    Reference - https://learn.microsoft.com/en-us/cli/azure/ml/online-endpoint?view=azure-cli-latest#az-ml-online-endpoint-delete

    UI

    Please click on the name of endpoint. It should show delete option to delete the endpoint as TP suggested.

    SDK

    For Real time

    
    from azure.ai.ml import MLClient
    from azure.identity import DefaultAzureCredential
    # authenticate
    credential = DefaultAzureCredential()
    # Get a handle to the workspace
    ml_client = MLClient(
        credential=credential,
        subscription_id="<SUBSCRIPTION_ID>",
        resource_group_name="<RESOURCE_GROUP>",
        workspace_name="<AML_WORKSPACE_NAME>",
    )
    
    ml_client.online_endpoints.begin_delete(name=online_endpoint_name).result()
    

    For Batch endpoint

    ml_client.batch_endpoints.begin_delete("<ENDPOINT_NAME>").result()
    
    

    https://learn.microsoft.com/en-us/azure/machine-learning/tutorial-deploy-model?view=azureml-api-2#delete-the-old-deployment

    Please accept this answer if above pointers helps address the issue.

    Thank you.


  2. TP 155.2K Reputation points Volunteer Moderator
    2026-03-04T21:18:22.7966667+00:00

    Hi Agnes,

    If you click on the endpoint name it should take you to a screen with Delete button at the top. Click Delete, click to confirm, and it should start deleting endpoint. Repeat steps for the other endpoint.

    Please click Accept Answer and upvote if the above was helpful.

    Thanks.

    -TP


  3. Q&A Assist
    2026-03-04T20:43:02.34+00:00
    AI generated content. This question contains an answer created with AI from Q&A Assist. Learn more

    To clean up the endpoints created during the exercise when there is no Delete button in the UI, delete them using the supported command-line or SDK methods.

    For Azure Machine Learning batch endpoints, use one of the following:

    Azure CLI

    az ml batch-endpoint delete --name <ENDPOINT_NAME> --yes
    

    Run this once for each endpoint that needs to be removed.

    Python SDK

    ml_client.batch_endpoints.begin_delete("<ENDPOINT_NAME>").result()
    

    Again, call this for each endpoint to be deleted.

    These commands delete the batch endpoint and all underlying deployments, but they do not delete any batch scoring jobs that were already created.


    References:

    0 comments No comments

Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.