Also I'm going to assume that list isn't a tree and doesn't need to be rotated a million times to delete, but you can delete a list with a simple loop.


while there are still nodes:
save a...