---
title: "Delete Project Endpoint"
method: DELETE
path: "/deleteProject"
---

# Delete Project Endpoint

`DELETE /deleteProject`

Deletes a project and all associated data including images, folders, persons, and associations.

Query Parameters:
    projectId (int): The ID of the project to delete (required)
    
Returns:
    JSON response with:
        - message: Success message
        - project_id: The deleted project ID
        
Errors:
    - 400 if projectId is missing
    - 404 if project is not found
    - 500 if deletion fails

## Query parameters

- `projectId` integer, required

## Response `200`

Successful Response

- unknown

## Other responses

- `422` — Validation Error

---

[API](https://skmtc.dev/pavoot/apis/fastapi.md) · [All operations](https://skmtc.dev/pavoot/apis/fastapi/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/pavoot/fastapi/revisions/16997cca6697/schema)
