I am trying to remove files I generated using powershell and del, but I get this message
del : Cannot remove item C:\Users\stefano.borini\<redacted>\.tox\py36\Include\fakepq.h: You do not have sufficient access rights to perform this operation.
At line:1 char:1
+ del .\.tox\
+ ~~~~~~~~~~~
+ CategoryInfo : PermissionDenied: (fakepq.h:FileInfo) [Remove-Item], IOException
+ FullyQualifiedErrorId : RemoveFileSystemItemUnAuthorizedAccess,Microsoft.PowerShell.Commands.RemoveItemCommand
del : Cannot remove item C:\Users\stefano.borini\<redacted>\.tox\py36\Include\fakesql.h: You do not have sufficient access rights to perform this operation.
However, I can right click the items and delete them from the windows explorer without any problem. Why?
Did you run Powershell as Administrator rights?
If so, you can try to add "-force" to your command.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With