---
title: "delete endpoint"
method: DELETE
path: "/api/v0/endptjobs/{id}/"
tags: ["Serverless"]
---

# delete endpoint

`DELETE /api/v0/endptjobs/{id}/`

Deletes an endpoint group by ID. Associated workergroups will also be deleted.

CLI Usage: `vastai delete endpoint <id>`

## Path parameters

- `id` integer, required

## Response `200`

Endpoint group successfully deleted

- object
  - `success` boolean
  - `deleted_workers` integer[] — List of worker instances that were deleted (if any)
  - `failed_workers` integer[] — List of worker instances that failed to delete (if any)
  - `msg` string — Additional information about the deletion

## Other responses

- `400` — Bad request
- `401` — Unauthorized
- `429` — Too Many Requests

---

[API](https://skmtc.net/vast/apis/vast-ai-api.md) · [All operations](https://skmtc.net/vast/apis/vast-ai-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/vast/vast-ai-api/revisions/4ed14f79f796/schema)
