Prerequisites
- Web console
- CLI
- Go SDK
- Python SDK
- JavaScript SDK
- REST API
-
Install and configure the Nebius AI Cloud CLI.
Check that your project ID is saved in the Nebius AI Cloud CLI profile configuration:
cat ~/.nebius/config.yaml
- Get an access token to authenticate to the REST API.
Steps
- Web console
- CLI
- Go SDK
- Python SDK
- JavaScript SDK
- REST API
- In the sidebar, go to
Serverless AI → Endpoints.
- Find the endpoint and then click
→ Delete.
- In the window that opens, confirm the deletion.
-
To get the endpoint ID, list all endpoints:
In the output, copy the ID of the required endpoint.
nebius ai endpoint list -
Delete the endpoint:
If a static IP address is assigned to the endpoint, the prompt asks to confirm the address release. Enter
nebius ai endpoint delete --id <endpoint_ID>yto confirm ornto keep the address allocated in a pool.
-
List endpoints:
In
listEndpointService := sdk.Services().Ai().V1().Endpoint() endpoints, err := listEndpointService.List( ctx, &ai.ListEndpointsRequest{ ParentId: "<project_ID>", }, ) if err != nil { return fmt.Errorf("list endpoints: %w", err) } fmt.Println(endpoints)ai.ListEndpointsRequest, setParentIdto the project ID. In the response, copy theMetadata.Idof the required endpoint. -
Delete the endpoint:
In
deleteEndpointService := sdk.Services().Ai().V1().Endpoint() deleteEndpointOperation, err := deleteEndpointService.Delete( ctx, &ai.DeleteEndpointRequest{ Id: "<endpoint_ID>", }, ) if err != nil { return fmt.Errorf("delete endpoint: %w", err) } if _, err = deleteEndpointOperation.Wait(ctx); err != nil { return fmt.Errorf("wait for endpoint deletion: %w", err) }ai.DeleteEndpointRequest, setIdto the endpoint ID that you copied.
-
List endpoints:
In
list_endpoint_service = EndpointServiceClient(sdk) endpoints = await list_endpoint_service.list( ListEndpointsRequest(parent_id="<project_ID>"), ) print(endpoints)ListEndpointsRequest, setparent_idto the project ID. In the response, copy themetadata.idof the required endpoint. -
Delete the endpoint:
In
delete_endpoint_service = EndpointServiceClient(sdk) delete_endpoint_operation = await delete_endpoint_service.delete( DeleteEndpointRequest(id="<endpoint_ID>"), ) await delete_endpoint_operation.wait()DeleteEndpointRequest, setidto the endpoint ID that you copied.
-
List endpoints:
In
const listEndpointService = new EndpointService(sdk); const endpoints = await listEndpointService.list( ListEndpointsRequest.create({ parentId: "<project_ID>", }), ); console.log(endpoints);ListEndpointsRequest, setparentIdto the project ID. In the response, copy themetadata.idof the required endpoint. -
Delete the endpoint:
In
const deleteEndpointService = new EndpointService(sdk); const deleteEndpointOperation = await deleteEndpointService.delete( DeleteEndpointRequest.create({ id: "<endpoint_ID>", }), ).result; await deleteEndpointOperation.wait();DeleteEndpointRequest, setidto the endpoint ID that you copied.
-
List endpoints:
In the request, specify:
curl --request GET \ --url "https://api.nebius.cloud/ai/v1/endpoints?parentId=<project_ID>" \ --header "Authorization: Bearer <access_token>"- Your access token in the
Authorizationheader. - The project ID in the
parentIdquery parameter.
metadata.idof the required endpoint. - Your access token in the
-
Delete the endpoint:
In the request, specify:
curl --request DELETE \ --url "https://api.nebius.cloud/ai/v1/endpoints/<endpoint_ID>" \ --header "Authorization: Bearer <access_token>"- Your access token in the
Authorizationheader. - The endpoint ID that you copied in the request path.
- Your access token in the