delete_nodes deletes first node