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

# Delete Project Endpoint

`DELETE /deleteProject`

## Request

- Base URL: `https://api.pavoot.com` (the document declares no server; this is the origin it was published from)
- URL: `https://api.pavoot.com/deleteProject`
- Auth: none declared

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/pavoot-api.md) - [All operations](https://skmtc.dev/pavoot/apis/pavoot-api/llms.txt) - [OpenAPI document](https://skmtc.dev/pavoot/apis/pavoot-api/revisions/8c0cd91c2a05?raw)
