<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):
 """Delete all indexes from Elasticsearch and index builder."""

        self.unregister_signals()
        for index in self.indexes:
            index.destroy()
        self.indexes = []