@staticmethod
def removeChildren(namespace, prefixes, extendedModule, referedModule):
    """
        This static method is used to remove children from the extended module.

        Parameters
        ----------
        namespace: string
            namespace of the referedModule.
        prefixes: list
            list of prefixes of objects to remove.
        extendedModule: ExtendedModule
            :class:`ExtendedModule` object to remove objects from.
        referedModule: module
            refered module object.
        """
    locals = extendedModule.locals
    to_remove = []
    for key in locals.keys():
        if not key.startswith('__'):
            for prefix in prefixes:
                if key.startswith(prefix):
                    to_remove.append(key)
    for key in to_remove:
        del locals[key]
