user want to delete all permissions and keep only modify permission for everyone and full permission to system. Like this.
But present with icacls command
icacls "%ProgramData%\myfolder\Licensing" /grant Everyone:M SYSTEM:F
how to remove all other entries and keep only this.
whether icacls or any other command line
I tried
icacls "%ProgramData%\myfolder\Licensing" /grant Everyone:M SYSTEM:F /inheritance:r
But it is not setting like that.