def delete_record(db: dict, record_id: int, total_records):
    """Delete a record specified by record_id
    """
    for i in range(record_id, total_records):
        db['db'][str(record_id)] = db['db'][record_id + 1]
    del db['db'][str(total_records)]
