<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def clean(self):
 """Remove all of the terms from the section, and also remove them from the document"""

        terms = list(self)

        for t in terms:
            self.doc.remove_term(t)