---
title: "Delete an object"
method: DELETE
path: "/api/v2/projects/{projectId}/objects/{objectId}"
tags: ["Content"]
---

# Delete an object

`DELETE /api/v2/projects/{projectId}/objects/{objectId}`

## Request

- Base URL: `https://davinci-app.com`
- URL: `https://davinci-app.com/api/v2/projects/{projectId}/objects/{objectId}`
- Auth: HTTP bearer

Deletes an object from the running project, together with its descendants.
Parent links, relationships, indexes, and other model references are cleaned
through the same update path used by the editor.

The change is uncommitted when this returns. Call `createCommit` to save it
in git. Deleting a reference object does not delete its stored file bytes,
because file storage is shared across branches.

## Query parameters

- `branch` string

## Response `200`

The object and its descendants were deleted.

- DeleteObjectResponse
  - `deletedCount` integer, required
  - `deletedObjectIds` string[], required

## Other responses

- `401`: No credential was supplied, or the supplied credential is malformed, expired, or revoked. A credential that is present but unusable is never downgraded to an anonymous request.
- `403`: Authenticated but not authorized. Either the acting user lacks the required resource permission, the key's scope ceiling excludes it, or the endpoint rejects this credential type (`CREDENTIAL_NOT_PERMITTED`).
- `404`: Project or object not found.
- `409`: The object is protected, locked, or cannot be deleted independently.
- `429`: Request rate exceeded, either globally or for this key.
- `500`: Unexpected server error.
- `503`: The project could not be opened in time, or no machine is currently available to run it. Error codes are `PROJECT_NOT_READY`, `SERVER_NOT_AVAILABLE`, and `SERVICE_UNAVAILABLE`. Retry after the interval in `Retry-After`.

## Changes

- **2026-09-15** (v2) `67c8b8616dbb`: 7 info
  - the `success` response property const value `false` was added for the status `401`
  - the `success` response property const value `false` was added for the status `403`
  - the `success` response property const value `false` was added for the status `404`
  - the `success` response property const value `false` was added for the status `409`
  - …3 more
- **2026-09-15** (v2) `48948af37797`: 1 info
  - endpoint added

[Operation history](https://skmtc.dev/celedon-solutions/apis/davinci-public-api/changes/api/v2/projects/:projectId/objects/:objectId/delete.md)

---

[API](https://skmtc.dev/celedon-solutions/apis/davinci-public-api.md) - [All operations](https://skmtc.dev/celedon-solutions/apis/davinci-public-api/llms.txt) - [OpenAPI document](https://skmtc.dev/celedon-solutions/apis/davinci-public-api/revisions/279218ca2e8d?raw)
