Deletion is restricted to the project owner — users who are only members cannot delete a project. Both variants perform a cascaded cleanup: allDocumentation Index
Fetch the complete documentation index at: https://mintlify.com/Taykl12/Classify/llms.txt
Use this file to discover all available pages before exploring further.
grupo_estudiante member rows and the proyecto_profesor owner link are removed before the grupos_proyectos row itself is deleted. The bulk variant silently skips any IDs the caller does not own rather than returning an error, and reports back only the IDs that were actually deleted.
Endpoints
| Method | Path | Description |
|---|---|---|
DELETE | /api/projects/:id | Delete a single project by ID |
DELETE | /api/projects/bulk | Delete multiple projects by ID array |
Delete Single Project
DELETE /api/projects/:id
The numeric project identifier to delete.
Headers
| Header | Value |
|---|---|
Authorization | Bearer <token> |
Cascade Order
When a project is deleted, the server removes associated rows in this order to satisfy foreign-key constraints:- All rows in
grupo_estudiantereferencing the project. - The row in
proyecto_profesorlinking the owner. - The project row in
grupos_proyectos.
Example
Response
Returns 200 OK on success.Error Responses
| Status | Description |
|---|---|
401 Unauthorized | Missing or invalid bearer token. |
403 Forbidden | Authenticated user is not the project owner. |
404 Not Found | No project exists with the given ID. |
Bulk Delete
DELETE /api/projects/bulk
Accepts an array of project IDs and deletes every project in the list that the caller owns. IDs the caller does not own — or that do not exist — are silently ignored. The response lists only the IDs that were actually removed.
Headers
| Header | Value |
|---|---|
Authorization | Bearer <token> |
Content-Type | application/json |
Body Parameters
Array of project ID strings to delete. Only projects owned by the authenticated user will be removed.
Example
Response
Returns 200 OK with the list of IDs that were successfully deleted. IDs the caller did not own or that did not exist are omitted from this array.Array of project ID strings that were deleted in this request.
Error Responses
| Status | Description |
|---|---|
401 Unauthorized | Missing or invalid bearer token. |