Skip to main content

Documentation 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.

Deletion is restricted to the project owner — users who are only members cannot delete a project. Both variants perform a cascaded cleanup: all 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

MethodPathDescription
DELETE/api/projects/:idDelete a single project by ID
DELETE/api/projects/bulkDelete multiple projects by ID array

Delete Single Project

DELETE /api/projects/:id

id
string
required
The numeric project identifier to delete.

Headers

HeaderValue
AuthorizationBearer <token>

Cascade Order

When a project is deleted, the server removes associated rows in this order to satisfy foreign-key constraints:
  1. All rows in grupo_estudiante referencing the project.
  2. The row in proyecto_profesor linking the owner.
  3. The project row in grupos_proyectos.

Example

curl -X DELETE https://your-domain.com/api/projects/42 \
  -H "Authorization: Bearer <token>"

Response

Returns 200 OK on success.
{ "ok": true }

Error Responses

StatusDescription
401 UnauthorizedMissing or invalid bearer token.
403 ForbiddenAuthenticated user is not the project owner.
404 Not FoundNo 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

HeaderValue
AuthorizationBearer <token>
Content-Typeapplication/json

Body Parameters

ids
string[]
required
Array of project ID strings to delete. Only projects owned by the authenticated user will be removed.

Example

curl -X DELETE https://your-domain.com/api/projects/bulk \
  -H "Authorization: Bearer <token>" \
  -H "Content-Type: application/json" \
  -d '{ "ids": ["42", "17", "99"] }'

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.
deleted
string[]
required
Array of project ID strings that were deleted in this request.
{ "deleted": ["42", "17"] }

Error Responses

StatusDescription
401 UnauthorizedMissing or invalid bearer token.

Build docs developers (and LLMs) love