Skip to main content
DELETE
/
api
/
Modulo
/
{id}
curl --request DELETE \
  --url https://your-api-host/api/Modulo/4 \
  --header 'Authorization: Bearer <token>'
{
  "message": "Módulo eliminado correctamente"
}
Permanently deletes a module from the system.

Authentication

Requires a valid Bearer token.
Authorization: Bearer <token>

Permissions

Requires the modulo.eliminar permission. Returns 403 Forbidden if the authenticated user’s profile does not have this permission.

Path parameters

id
integer
required
ID of the module to delete.
Deleting a module does not automatically remove the permission records assigned to profiles for that module. This leaves orphaned permission entries in the database. Before deleting a module, delete or reassign all profile permissions that reference it.

Examples

curl --request DELETE \
  --url https://your-api-host/api/Modulo/4 \
  --header 'Authorization: Bearer <token>'
{
  "message": "Módulo eliminado correctamente"
}

Build docs developers (and LLMs) love