<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_text_structure(self, text_structure):
 # TODO: delete also TextElements one by one """ Remove any citable text structure to the work. """

        idx = self.hucit_has_structure.index(text_structure)
        ts = self.hucit_has_structure.pop(idx)
        ts.remove()
        self.update()
        return