code: def remove_cog(self, name):
          
  
          cog = self.__cogs.pop(name, None)
          if cog is None:
              return
  
          help_command = self._help_command
          if help_command and help_command.cog is cog:
              help_command.cog = None
          cog._eject(self)
docs: Removes a cog from the bot.
  
          All registered commands and event listeners that the
          cog has registered will be removed as well.
  
          If no cog is found then this method has no effect.
  
          Parameters
          -----------
          name: :class:`str`
              The name of the cog to remove.