You can use Q-Dir or Dism++ to gain access and delete without screwing up permissions by taking ownership of entire folder or folders.

It's not wise to take ownership of system folders. You can use third party tools to bypass permissions.

Q-Dir

Q-Dir the Quad Explorer

Taking ownership of windowsapps folder - failed to process?

Also see image 1, image 2 here:

Windows 10 / 11 all apps folder (open, find, delete, cleen)?

Dism++

Taking ownership of windowsapps folder - failed to process?

Download Dism++ - MajorGeeks