delete_list implementation