Correct syntax for adding layers to delete to list