delete method for lists