In my code I create buttons programmatically as I do not know how many I need until a file is parsed

```
buttons= new LinkedList<Button>();
    for(int i=0; i< aList.size();i++)
    {
        Button btn = new Button(this);
        btn.setId(i);
        btn.setOnClickListener(this);
        btn.setText(stringList.get(i));
        btn.setLayoutParams(new LayoutParams(LayoutParams.FILL_PARENT, LayoutParams.FILL_PARENT));
        buttons.add(btn);
        layout.addView(btn);
    }

```

This works fine, I'm just wondering if there is a quick way to delete all these buttons before creating more (I change the values of the buttons to new ones when the user presses an seperate button)