Windows Powershell access to path denied

JcBK 0 Reputation points
2024-08-29T02:44:20.21+00:00

I am trying to delete some files using clc command
clc 'C:\Program Files (x86)\Steam\userdata....\4000*' (the .... is my ID number)
but the microsoft powershell is denying access to it, i am running it as admind and tried using execution policy but nothing worked
I really need help with this because its only way to trigger an conflict window in steam i really need

Windows Server PowerShell
Windows Server PowerShell
Windows Server: A family of Microsoft server operating systems that support enterprise-level management, data storage, applications, and communications.PowerShell: A family of Microsoft task automation and configuration management frameworks consisting of a command-line shell and associated scripting language.
5,521 questions
PowerShell
PowerShell
A family of Microsoft task automation and configuration management frameworks consisting of a command-line shell and associated scripting language.
2,509 questions
{count} votes

1 answer

Sort by: Most helpful
  1. Rich Matheisen 46,711 Reputation points
    2024-08-29T18:51:19.8+00:00

    "CLC" is an alias for the Clear-Content cmdlet. The Clear-Content cmdlet does not delete the file, it just removes the file contents.

    To remove a file, use the Remove-Item cmdlet.

    You should probably look for a forum devoted to Steam and ask your question there.

    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.