delete list functionality