data/data_api.py
def delete_driver(chat_id):
    """
    Wipes a driver from the driver list.
    :param chat_id: The chat_id to remove.
    :return:
    """
    del dt.drivers[chat_id]

    for direction in dt.groups:
        for day in dt.groups[direction]:
            if chat_id in dt.groups[direction][day]:
                del dt.groups[direction][day][chat_id]

    for user in dt.users:
        if chat_id in dt.users[user]["Debit"]:
            del dt.users[user]["Debit"][chat_id]

    Wipes a driver from the driver list.
    :param chat_id: The chat_id to remove.
    :return:
    
Wipes a driver from the driver list.
Wipes a driver from the driver list .
def delete_driver(chat_id):
    del dt.drivers[chat_id]
    for direction in dt.groups:
        for day in dt.groups[direction]:
            if chat_id in dt.groups[direction][day]:
                del dt.groups[direction][day][chat_id]
    for user in dt.users:
        if chat_id in dt.users[user]["Debit"]:
            del dt.users[user]["Debit"][chat_id]
def delete_driver ( chat_id ) : del dt . drivers [ chat_id ] for direction in dt . groups : for day in dt . groups [ direction ] : if chat_id in dt . groups [ direction ] [ day ] : del dt . groups [ direction ] [ day ] [ chat_id ] for user in dt . users : if chat_id in dt . users [ user ] [ "Debit" ] : del dt . users [ user ] [ "Debit" ] [ chat_id ]
Wipes a driver from the driver list.
Wipes a driver from the driver list .
"""
    Wipes a driver from the driver list.
    :param chat_id: The chat_id to remove.
    :return:
    """
None
chat_id
The chat_id to remove.
The chat_id to remove .