# Entity: Person from fastapi import APIRouter, Depends, HTTPException, status from sqlalchemy.orm import Session from typing import List from core.database import get_db from models.person import Person from schemas.person import PersonSchema from helpers.person_helpers import delete_people_below_age router = APIRouter() @router.delete("/people", status_code=200) async def delete_people_under_age( age: int = 50, db: Session = Depends(get_db) ): deleted_count = delete_people_below_age(db, age) return {"message": f"Deleted {deleted_count} people below age {age}"}