code: def remove_env(environment):
      
      if not environment:
          print("You need to supply an environment name")
          return
  
      parser = read_config()
  
      if not parser.remove_section(environment):
          print("Unknown environment type '%s'" % environment)
          return
  
      write_config(parser)
  
      print("Removed environment '%s'" % environment)
docs: Remove an environment from the configuration.