Skip to main content
DELETE /api/modulo/:id Permanently removes a module and cascades the deletion to all related records. The endpoint deletes in this order:
  1. All permisos_perfil rows where idModulo matches the given id.
  2. All menu rows where idModulo matches the given id.
  3. The modulo record itself.
This operation is irreversible. The module and all associated permissions and menu entries are permanently removed.

Path parameters

number
required
Primary key of the module to delete.

Response

boolean
required
true when the module and all related records are deleted successfully.
string
required
Confirmation string. Always "Módulo y sus permisos asociados eliminados correctamente." on success.

Error responses

Errors for this endpoint return HTTP 200 with success: false in the body rather than a 4xx/5xx HTTP status code.

Examples

Success response

200

Error response (invalid ID)

200