I've got a java action that takes a list of members and emails them based on their Email address. If I want to email only 1 member I was advised to create a new list containing just the one member and input that into the java action in my microflow. My problem is that I don't want a bunch of old lists hanging around after this but I can't seem to delete a List in the same microflow after my java action. Does this already get removed after my microflow ends or is there some special method for deleting one?
Robert van 't Hof
A list is just a lightweight structure that contains references to one or more objects. So you cannot really delete a list, you can only delete the objects it contains from the database. The list itself (i.e., the lightweight structure) will automatically disappear after your microflow has finished.