code: def del_action_role(ctx):
      
  
      objects = ctx.obj['objects']
      action = ctx.obj['action']
      role = ctx.obj['role']
  
      if action is None or role is None:
          log('You need to specify an action or role to the RBAC command group for this to work.', lvl=warn)
          return
  
      for item in objects:
          if role in item.perms[action]:
              item.perms[action].remove(role)
              item.save()
  
      log("Done")
docs: Deletes a role from an action on objects