code: def remove(env, securitygroup_id, rule_id):
      
      mgr = SoftLayer.NetworkManager(env.client)
  
      ret = mgr.remove_securitygroup_rule(securitygroup_id, rule_id)
  
      if not ret:
          raise exceptions.CLIAbort("Failed to remove security group rule")
  
      table = formatting.Table(REQUEST_BOOL_COLUMNS)
      table.add_row([ret['requestId']])
  
      env.fout(table)
docs: Remove a rule from a security group.