<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def get_removes(self, api=None, profile=None):
 """Returns filtered list of Remove objects in this registry :param str api: Return Remove objects with this api name or None to return all Remove objects. :param str profile: Return Remove objects with this profile or None to return all Remove objects. :return: list of Remove objects """

        out = []
        for ft in self.get_features(api):
            out.extend(ft.get_removes(profile))
        return out