# Delete Project

`DELETE /v1/projects/{project_id}`

Delete a project.

This will fail if the project has active finetune jobs. Cancel or wait for
all jobs to complete before deleting the project. It takes an
organization key: a key restricted to workspaces cannot delete one.

- Base URL: `https://api.qualia.dev`
- Authentication: an API key in the `X-API-Key` header, or `Authorization: Bearer …`

## Parameters

- `project_id` (path, string (uuid), required)

## Responses

- `200` Project deleted successfully: `application/json` `ProjectDeleteResponse`
- `400` Project has active finetune jobs: `application/json` `ErrorResponse`
- `401` Invalid or missing API key: `application/json` `ErrorResponse`
- `403` A key restricted to workspaces: `application/json` `ErrorResponse`
- `404` Project not found: `application/json` `ErrorResponse`
- `422` Validation error

## Schemas

```yaml
ProjectDeleteResponse:
  properties:
    deleted:
      type: boolean
      description: Whether the project was deleted
    project_id:
      type: string
      format: uuid
      description: ID of the deleted project
  type: object
  required:
    - deleted
    - project_id
  title: ProjectDeleteResponse
  description: Response for project deletion
ErrorResponse:
  properties:
    detail:
      type: string
      description: Error message describing what went wrong
  type: object
  required:
    - detail
  title: ErrorResponse
  description: Standard error response.
```
