@app.delete('/todoer/admin/v1/tasks', status_code=204)
async def del_all_task(database=Depends(get_database)):
    try:
        logger.info('request to delete all tasks')
        (await database.delete_all())
    except DataLayerException:
        raise HTTPException(status_code=404, detail=f'Failed to delete all tasks')
@app.delete('/todoer/admin/v1/tasks', status_code=204)
async def del_all_task(database=Depends(get_database)):
    try:
        logger.info('request to delete all tasks')
        (await database.delete_all())
    except DataLayerException:
        raise HTTPException(status_code=404, detail=f'Failed to delete all tasks')