<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def remove_selected(self, *args):
 """Remove the selected catalog - allow the passing of arbitrary args so that buttons work. Also remove any nested catalogs."""

        self.collapse_nested(self.selected)
        self.remove(self.selected)