---
title: "Clear workspaces for repo"
method: DELETE
path: "/api/repos/{namespace}/{repo_name}/workspaces/clear"
tags: ["Workspaces"]
---

# Clear workspaces for repo

`DELETE /api/repos/{namespace}/{repo_name}/workspaces/clear`

## Request

- Base URL: `https://hub.oxen.ai`
- URL: `https://hub.oxen.ai/api/repos/{namespace}/{repo_name}/workspaces/clear`
- Auth: HTTP bearer
- TypeScript: <https://skmtc.dev/oxen/apis/oxen-server/docs/api/repos/:namespace/:repo_name/workspaces/clear/delete.ts> (a function with typed inputs; its response is checked against the schema)

Deletes all workspaces for the repo

## Path parameters

- `namespace` string, required
- `repo_name` string, required

## Response `200`

Workspaces cleared

- StatusMessage
  - `oxen_version` string, nullable
  - `status` string, required
  - `status_message` string, required

## Other responses

- `404`: Repository not found

---

[API](https://skmtc.dev/oxen/apis/oxen-server.md) - [All operations](https://skmtc.dev/oxen/apis/oxen-server/llms.txt) - [OpenAPI document](https://skmtc.dev/oxen/apis/oxen-server/revisions/2ae578129949?raw)
