<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def detach_remote(self, id, name):
 """ destroy remote instance of widget Arguments: - id (str):
 widget id - name (str):
 widget type name """


        if name in self.widgets:
            if id in self.widgets[name]:
                del self.widgets[name]