def clean_old_data(conn, category_type_id):
    if (is_conn(conn) and is_int(category_type_id)):
        delete_categories_for_queries_by_category_type_id(conn, category_type_id)
        delete_categories_by_category_type_id(conn, category_type_id)
        print('Clearing old data...')
    else:
        raise AttributeError('Connection object or Category Type ID                 was not provided')
def clean_old_data(conn, category_type_id):
    if (is_conn(conn) and is_int(category_type_id)):
        delete_categories_for_queries_by_category_type_id(conn, category_type_id)
        delete_categories_by_category_type_id(conn, category_type_id)
        print('Clearing old data...')
    else:
        raise AttributeError('Connection object or Category Type ID                 was not provided')