---
title: "Delete Context"
method: DELETE
path: "/v0/project/{project_name}/contexts/{context_name}"
tags: ["Contexts"]
---

# Delete Context

`DELETE /v0/project/{project_name}/contexts/{context_name}`

Deletes a context from a project. This will not delete the logs or artifacts
within the context, but will remove their association with this context.

When include_children is True (default), all child contexts sharing the same
prefix will also be deleted. For Assistants/UnityTests projects, logs that
exist in sibling contexts (All/X, User/All/X) will also have their associations
cleaned up.

## Path parameters

- `project_name` string, required — Name of the project to delete context from.
- `context_name` string, required — Name of the context to delete.

## Query parameters

- `include_children` boolean — Whether to delete child contexts (which share the same '/' separated prefix). When True, deleting 'experiments' will also delete 'experiments/trial1', 'experiments/trial2', etc. The parent context does not need to exist for children to be deleted.

## Response `200`

Successful Response

- unknown

## Other responses

- `403` — Forbidden Operation
- `404` — Project or Context Not Found
- `422` — Validation Error

---

[API](https://skmtc.net/unify/apis/unifyai-http-api-reference.md) · [All operations](https://skmtc.net/unify/apis/unifyai-http-api-reference/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/unify/unifyai-http-api-reference/revisions/900377f918b6/schema)
