---
title: "Op Delete"
method: DELETE
path: "/v2/{entity}/{project}/ops/{object_id}"
tags: ["Ops"]
---

# Op Delete

`DELETE /v2/{entity}/{project}/ops/{object_id}`

## Request

- Base URL: `https://trace.wandb.ai` (the document declares no server; this is the origin it was published from)
- URL: `https://trace.wandb.ai/v2/{entity}/{project}/ops/{object_id}`
- Auth: none declared

Delete an op object. If digests are provided, only those versions are deleted. Otherwise, all versions are deleted.

## Path parameters

- `entity` string, required
- `project` string, required
- `object_id` string, required

## Query parameters

- `digests` string[], nullable: List of digests to delete. If not provided, all digests for the op will be deleted.

## Response `200`

Successful Response

- OpDeleteRes
  - `num_deleted` integer, required: Number of op versions deleted from this op

## Other responses

- `422`: Validation Error

## Changes

- **2026-10-16** `dd89fadfe4e4`: 3 info
  - the endpoint scheme security `HTTPBasic` was removed from the API
  - added the optional property `detail/items/ctx` to the response with the `422` status
  - added the optional property `detail/items/input` to the response with the `422` status
- **2026-02-02** `56745769989b`: 1 info
  - endpoint added
- **2026-01-07** `3758bf263a5e`: 1 breaking
  - api path removed without deprecation
- **2026-01-07** `d6e39f7c717d`: 1 breaking, 2 info
  - removed the request body
  - api operation id `op_delete` removed and replaced with `op_delete_v2__entity___project__ops__object_id__delete`
  - added the new optional `query` request parameter `digests`
- **2025-11-14** `e444bf379e61`: 1 info
  - endpoint added

[Operation history](https://skmtc.dev/wandb/apis/weights-biases-weave-stainless-api/changes/v2/:entity/:project/ops/:object_id/delete.md)

---

[API](https://skmtc.dev/wandb/apis/weights-biases-weave-stainless-api.md) - [All operations](https://skmtc.dev/wandb/apis/weights-biases-weave-stainless-api/llms.txt) - [OpenAPI document](https://skmtc.dev/wandb/apis/weights-biases-weave-stainless-api/revisions/f7643c49bf2e?raw)
