async def delete_chat(
    *,
    db: AsyncSession = Depends(get_db),
    chat_id: UUID,
    user: schemas.User = Depends(get_user),
) -> None:
    """Archive a chat.

    Args:
    ----
        db: The database session.
        chat_id: The ID of the chat to archive.
        user: The current user.
    """
    chat = await crud.chat.get(db=db, id=chat_id, current_user=user)
    if not chat:
        raise HTTPException(status_code=status.HTTP_404_NOT_FOUND, detail="Chat not found")

    await crud.chat.remove(db=db, id=chat_id, current_user=user)
Archive a chat.

    Args:
    ----
        db: The database session.
        chat_id: The ID of the chat to archive.
        user: The current user.
    
backend/airweave/api/v1/endpoints/chat.py