Delete folder permision powershell
Open powershell as administrator
takeown /f "E:\path\to\my\folder\" /r /d y
icacls "E:\path\to\my\folder\" /grant myusername:F /t /q
takeown /f folder_name /r /d y
icacls folder_name /grant username_or_usergroup:F /t /q
https://www.faqforge.com/windows/take-ownership-of-a-file-or-folder-by-command-in-windows/
takeown /f folder_name
icacls folder_namegrant username_or_usergroup:F /t /q
me funciono el siguiente
ResponderBorrartakeown /f "G:\Users\" /r
en windows 11 me funciono usando
ResponderBorrartakeown /f "F:\" /r
pero por la mitad hasta que corri el otro comando tambien
icacls "F:\" /grant lucas:F /t /q