Skip to main content
DELETE
/
projects
/
:id
Delete Project
curl --request DELETE \
  --url https://api.example.com/projects/:id \
  --header 'Authorization: <authorization>'
{
  "success": true
}
Deletes a project from the system.

Authentication

Authorization
string
required
Bearer token for authentication
Required Roles: monitor or admin

Path Parameters

id
number
required
The project ID (idProyecto) to delete

Response

success
boolean
Indicates whether the deletion was successful

Example Request

curl -X DELETE https://api.sociapp.com/projects/1 \
  -H "Authorization: Bearer YOUR_TOKEN"

Example Response

{
  "success": true
}

Error Responses

401 Unauthorized

Returned when the authentication token is missing or invalid.

403 Forbidden

Returned when the user does not have the required role (monitor or admin).

404 Not Found

{
  "statusCode": 404,
  "message": "Proyecto no encontrado"
}
Returned when the specified project ID does not exist.

Important Notes

  • This operation is permanent and cannot be undone
  • Consider the impact on related activities and subprojects before deletion
  • Uploaded PDF files are not automatically deleted from the file system

Build docs developers (and LLMs) love