<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def destroy(self):
 """ Destroy all tabs when destroyed """

        super(AndroidTabLayout, self).destroy()
        if self.tabs:
            del self.tabs