What is the difference between `/remove` and `/remove:g` in `icacls`?

  • /remove:g removes a specific group from the access control list (ACL) of a file or folder.
  • /remove simply removes any user or group from the ACL, depending on the identifier provided after the command.

Use /remove:g when targeting groups specifically and /remove when removing either users or groups without specification.